Message ID | 168155718437.13678.714141668943813263.stgit@skinsburskii.localdomain |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp433578vqo; Thu, 27 Apr 2023 10:47:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6wKNVwSc0RkMGrEZGDqnNDkxts7ve6OK1na0WFoyDF8f0asLZenFX3xIJNMdiiANmV9IT+ X-Received: by 2002:a05:6a21:3995:b0:ee:e922:6747 with SMTP id ad21-20020a056a21399500b000eee9226747mr2354315pzc.56.1682617621472; Thu, 27 Apr 2023 10:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682617621; cv=none; d=google.com; s=arc-20160816; b=gO8MvnTS929LGHNfjcAsi554xOzuPb2dlNK7cpBqp+WfjYhcB53SaCXcknQrhuRZwF KPhjR7RwnhGu7nalSe1vENvRxVwYt7T8fSkcMG+pTjNVaVZo6Ytld+eS7N18EAgZXk5b rXIrdXwViXwwAHNpJKmzu4eWozE+O5CI6NpYoXfsYrwQXZi8N598+nAQadGpS7Rt/n3R TJscP2iGqVmZydGovFpsr8TsTnLLEP9AldGS85cYuhYG74pAVWVLtOFfEx9MPzSZvkkr n0lotMkuqCeHiZvMcg8J10Vf4DGUgFK+ovWHXo4TApTDpFpcrE4PzXp6V+f9GlcY3XdT 0nIg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q131-20020a632a89000000b005245a7cb22esi19108631pgq.674.2023.04.27.10.46.44; Thu, 27 Apr 2023 10:47:01 -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 S244405AbjD0RmM (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Thu, 27 Apr 2023 13:42:12 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <skinsburskii@linux.microsoft.com> Cc: Matt Turner <mattst88@gmail.com>, x86@kernel.org, Stanislav Kinsburskii <stanislav.kinsburskii@gmail.com>, Borislav Petkov <bp@alien8.de>, linux-ia64@vger.kernel.org, Mark Brown <broonie@kernel.org>, Richard Henderson <richard.henderson@linaro.org>, linux-kernel@vger.kernel.org, Brian Cain <bcain@quicinc.com>, linux-mips@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org>, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, Michael Ellerman <mpe@ellerman.id.au>, Linus Walleij <linus.walleij@linaro.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Bjorn Helgaas <bhelgaas@google.com>, Andrew Morton <akpm@linux-foundation.org>, Dave Hansen <dave.hansen@linux.intel.com>, Omar Sandoval <osandov@fb.com>, Helge Deller <deller@gmx.de>, linuxppc-dev@lists.ozlabs.org, linux-hexagon@vger.kernel.org, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Ivan Kokshaysky <ink@jurassic.park.msu.ru>, Ingo Molnar <mingo@redhat.com>, Arnd Bergmann <arnd@arndb.de>, Florian Fainelli <f.fainelli@gmail.com>, Chris Down <chris@chrisdown.name>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, "H. Peter Anvin" <hpa@zytor.com>, Thomas Gleixner <tglx@linutronix.de> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764352454639375122?= X-GMAIL-MSGID: =?utf-8?q?1764352454639375122?= |
Series |
Expect immutable pointer in virt_to_phys/isa_virt_to_bus prototypes
|
|
Message
Stanislav Kinsburskii
April 15, 2023, 11:17 a.m. UTC
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(-)
Comments
On Sat, Apr 15, 2023, at 12:17, Stanislav Kinsburskii wrote: > 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. > Looks all good to me. If everyone is happy with it, I'll queue it up after in the asm-generic tree for 6.5, once rc1 is out. Arnd
On Thu, Apr 27, 2023 at 7:41 PM Stanislav Kinsburskii <skinsburskii@linux.microsoft.com> wrote: > 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... This is nice. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> I am working with an adjacent task, which is to make virt_to_pfn() and pfn_to_virt() into static inlines. I might need to rebase my work on top of this but it should be doable, I am currently stressing the buildbots with this with the idea to propose it to Arnd once v6.4-rc1 is out: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/log/?h=b4/virt-to-pfn-v6-4-rc1 Yours, Linus Walleij