Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp990419rwr; Thu, 27 Apr 2023 10:42:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ41hRn9aRQvlQG4F/GpJ0bHSMN5PBUL8NLmHShKOFngHcoS7FLX+JitOcfGjY6pZlmpXYln X-Received: by 2002:a05:6a20:7f99:b0:f6:d60d:dbc8 with SMTP id d25-20020a056a207f9900b000f6d60ddbc8mr2251833pzj.2.1682617349446; Thu, 27 Apr 2023 10:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682617349; cv=none; d=google.com; s=arc-20160816; b=Rbw6lSavNwfoggwq63GvKEhWTCLBCARXabnUCWj4ryZaySeKhh1LcsCbSJIm+4zEbk NCO+ciHbxvByUDeBNMpwzz0pGp07/5C82F4Q2iUcEwfmN5/ab11lxvz3Pg7zGmpkQwac xj+4vyStMHXbFfw6q8ZUTZPOwgS5+W+6j+V8FiwjqTHe4iEf27ndF+iZ3AoVlAXWZ7cw VHznEVH0wRcI/JJJZEpeT1RaVzT+ty3Uq7SMu04rITVRDyX9YSPyhTCskDO7WCRhV5EX RiFgoGTFzyNsRFh1YiaJ6Th0DHHJPqpOVbyqnSEOgsJ++JdjgHOfbYF4SmSAdx9g6LjA FyxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:from:subject:dkim-signature :dkim-filter; bh=tQBmtbcpqnp+RILjBR0oqwhW0pMzwxDvx3m4tXPmSeg=; b=RSpRXqW1/Ew38ZzXWMhCI3x3ZxO0Yo24r2Ib92jG9YXkqjt9RN4Qjp8ESWayKEYkQ/ yRFOjFJVDu+EwQU5R3s9zA+HChPEvlWI+4u2/5TRkBJzUiBW5LKwfwivG4m7c2n5S4pl QipFQTU/kTjJagqUC18gzv+aOdY1kQjbdO4t1c9jVtnPxQ6HJTNnQ4yiIVYNJREmt4ek e4KvqPIkiuXke/bU9iyxypm+utfaj0CHR5kKkDF+Z6bKBJyDDhuxRzJTpFORdgvNJZU6 wrjdqje5U0sjEPJ2UFW8aHD06Qsp1P4issD1tvaJfV1ExeIpeSYTmQFE4PTJt1kJl5cj CRVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=koFTR0U8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a6540cb000000b00517f0c53073si17857511pgp.885.2023.04.27.10.42.17; Thu, 27 Apr 2023 10:42:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=koFTR0U8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244399AbjD0RmL (ORCPT + 99 others); Thu, 27 Apr 2023 13:42:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244281AbjD0RmK (ORCPT ); Thu, 27 Apr 2023 13:42:10 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B15EB5584; Thu, 27 Apr 2023 10:41:54 -0700 (PDT) Received: from skinsburskii.localdomain (c-67-170-100-148.hsd1.wa.comcast.net [67.170.100.148]) by linux.microsoft.com (Postfix) with ESMTPSA id 2EDFA21C33DF; Thu, 27 Apr 2023 10:41:52 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2EDFA21C33DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1682617312; bh=tQBmtbcpqnp+RILjBR0oqwhW0pMzwxDvx3m4tXPmSeg=; h=Subject:From:Cc:Date:From; b=koFTR0U8zfUvb5Uc+C+Hbp/AJH8F6PVoyRgqvwqagczF7i9s34sgxAtQuetm20+XS 5Qm+28Pt+pSiCHLtISTWzADXqXkirskMRFVFEdzGl5W3ecGwC3+rdF73jW6Ou0nhTs O5MdjQWqF4ihM7lRjxSdq9BjhqMcNktql7ZPF+I0= Subject: [PATCH 0/7] Expect immutable pointer in virt_to_phys/isa_virt_to_bus prototypes From: Stanislav Kinsburskii Cc: Matt Turner , x86@kernel.org, Stanislav Kinsburskii , Borislav Petkov , linux-ia64@vger.kernel.org, Mark Brown , Richard Henderson , linux-kernel@vger.kernel.org, Brian Cain , linux-mips@vger.kernel.org, Geert Uytterhoeven , linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, Michael Ellerman , Linus Walleij , Jiaxun Yang , Bjorn Helgaas , Andrew Morton , Dave Hansen , Omar Sandoval , Helge Deller , linuxppc-dev@lists.ozlabs.org, linux-hexagon@vger.kernel.org, Thomas Bogendoerfer , Ivan Kokshaysky , Ingo Molnar , Arnd Bergmann , Florian Fainelli , Chris Down , Nicholas Piggin , Christophe Leroy , "H. Peter Anvin" , Thomas Gleixner Date: Sat, 15 Apr 2023 04:17:19 -0700 Message-ID: <168155718437.13678.714141668943813263.stgit@skinsburskii.localdomain> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-15.4 required=5.0 tests=BAYES_00,DATE_IN_PAST_96_XX, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH, MISSING_HEADERS,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series is aimed to address compilation warnings when a constant pointer is passed to virt_to_phys and isa_virt_to_bus functions: warning: passing argument 1 of ‘virt_to_phys’ discards ‘const’ qualifier from pointer target type warning: passing argument 1 of ‘isa_virt_to_bus’ discards ‘const’ qualifier from pointer target type The change(s) is the same for all architectures, but it's split into a series on per-arch basis to simplify applying and testing on the maintainers side. The following series implements... --- Stanislav Kinsburskii (7): x86: asm/io.h: Expect immutable pointer in virt_to_phys/isa_virt_to_bus prototypes alpha: asm/io.h: Expect immutable pointer in virt_to_phys/isa_virt_to_bus prototypes mips: asm/io.h: Expect immutable pointer in isa_virt_to_bus prototype hexagon: asm/io.h: Expect immutable pointer in virt_to_phys prototype ia64: asm/io.h: Expect immutable pointer in virt_to_phys prototype powerpc: asm/io.h: Expect immutable pointer in virt_to_phys prototype asm-generic/io.h: Expect immutable pointer in virt_to_phys arch/alpha/include/asm/io.h | 6 +++--- arch/hexagon/include/asm/io.h | 2 +- arch/ia64/include/asm/io.h | 2 +- arch/mips/include/asm/io.h | 2 +- arch/powerpc/include/asm/io.h | 2 +- arch/x86/include/asm/io.h | 4 ++-- include/asm-generic/io.h | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-)