From patchwork Sat Apr 15 11:17:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stanislav Kinsburskii X-Patchwork-Id: 8730 Return-Path: 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 + 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 ); 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764352454639375122?= X-GMAIL-MSGID: =?utf-8?q?1764352454639375122?= 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... Reviewed-by: Linus Walleij --- 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(-)