Message ID | 168155746830.13678.8071954787135972276.stgit@skinsburskii.localdomain |
---|---|
State | New |
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 b10csp433755vqo; Thu, 27 Apr 2023 10:47:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DatPydi/U6Y4sAeNyNv7sHwVw8JPBiogzF1B9IoBqvn+mAXc79IOqEyHOX6vGyL1ZgGTv X-Received: by 2002:a17:902:f70f:b0:1a8:1c9a:f68 with SMTP id h15-20020a170902f70f00b001a81c9a0f68mr2619231plo.36.1682617646235; Thu, 27 Apr 2023 10:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682617646; cv=none; d=google.com; s=arc-20160816; b=wGagNpmjwqEfNdZZ01kyxEqkYfy4k8jBuoFw7KG/wgjrS85AajQveQXCAX27Qkie/w BNen3bQRRkujPe+kVjosg5MjnYMHOiq3exZhILcnV54ZGEpdyTwu9nj8WO6G4zTZsIqY cWkkVSaNTRkWfqguZUv3vRYGkp3VZ+n0SKo2xz+jv/gH/0100+/g1gxt28IDXFck3s9i cZrd4YuDR1Qtq7esaod7KeVC4f241CFWq+zmXn5HU5eVE3lHy7k0S17CgeBquG2+NGww KOy6Cn/VjDFRG+c0gJVcPHy+nYxEvewrrzHsAA++xnmZll4YmJB9TmLvCTgeww7NTrFO T0ug== 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:references:in-reply-to:message-id:date:cc:from:subject :dkim-signature:dkim-filter; bh=UW7ul1bnDEkuT8AVHX2Onz8R55uQ/uJg/sKB3VFIxA8=; b=Th7frgNhSyVWB5kRNfSnjaLoQRxYW1ceWiGmsuxb7rl06SbSmwjziIjxl/R5+Uz0eI ain4BAVp8CzpKmKHvZdSRsAL2L4ww3sB823oSk+SNP088zuq9ZDWQoRy6cLVFqRgUFdF fN1K/M7r4KiEvZDZbqEQG6YwD5VyWk5Trq5X12ysh9HDq2rUkfpCMZQ7fq6+YPO3/0Mc KrFR2DsCbJgkeijXNFqLQweDPwX42Yiw4+GYqPayQkQiYoEZjVZnT4dIZk2ZVQ8nWMug zr98+NNZj6UHZA7B+/fP7I/c8TMGfU+ZTpBm4PgqIigE+QaWLOYswf523y5Qlr2IpSAk vuQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=GliyQuKW; 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 z17-20020a170903019100b0019abec982c2si21192976plg.77.2023.04.27.10.47.13; Thu, 27 Apr 2023 10:47:26 -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=GliyQuKW; 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 S244486AbjD0Rmu (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Thu, 27 Apr 2023 13:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244536AbjD0Rmf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Apr 2023 13:42:35 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C2A5955AD; Thu, 27 Apr 2023 10:42:21 -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 2486921C33E2; Thu, 27 Apr 2023 10:42:21 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2486921C33E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1682617341; bh=UW7ul1bnDEkuT8AVHX2Onz8R55uQ/uJg/sKB3VFIxA8=; h=Subject:From:Cc:Date:In-Reply-To:References:From; b=GliyQuKW8oGgjFC+cLdORseF/SjeucGpIWTeHmMqR/KK+I4hETWbTsw1knbYRh+ZR MAUHxIEfXAJKc+C+mHa5zeINLp0UrkYuhHWGUcDUmjK65ZhaWGnbgn4HjG5NdbtxYG zPBjIck4JhL804V8kj1f5FBRY43HMXKgC5GxUAzs= Subject: [PATCH 5/7] ia64: asm/io.h: Expect immutable pointer in virt_to_phys prototype From: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com> Cc: Stanislav Kinsburskii <stanislav.kinsburskii@gmail.com>, Geert Uytterhoeven <geert@linux-m68k.org>, Helge Deller <deller@gmx.de>, Arnd Bergmann <arnd@arndb.de>, Andrew Morton <akpm@linux-foundation.org>, Bjorn Helgaas <bhelgaas@google.com>, Stanislav Kinsburskii <stanislav.kinsburskii@gmail.com>, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 15 Apr 2023 04:17:48 -0700 Message-ID: <168155746830.13678.8071954787135972276.stgit@skinsburskii.localdomain> In-Reply-To: <168155718437.13678.714141668943813263.stgit@skinsburskii.localdomain> References: <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?1764352480982768502?= X-GMAIL-MSGID: =?utf-8?q?1764352480982768502?= |
Series |
Expect immutable pointer in virt_to_phys/isa_virt_to_bus prototypes
|
|
Commit Message
Stanislav Kinsburskii
April 15, 2023, 11:17 a.m. UTC
From: Stanislav Kinsburskii <stanislav.kinsburskii@gmail.com> These helper function - virt_to_phys - doesn't need the address pointer to be mutable. In the same time expecting it to be mutable leads to the following build warning for constant pointers: warning: passing argument 1 of ‘virt_to_phys’ discards ‘const’ qualifier from pointer target type Signed-off-by: Stanislav Kinsburskii <stanislav.kinsburskii@gmail.com> CC: Geert Uytterhoeven <geert@linux-m68k.org> CC: Helge Deller <deller@gmx.de> CC: Arnd Bergmann <arnd@arndb.de> CC: Andrew Morton <akpm@linux-foundation.org> CC: Bjorn Helgaas <bhelgaas@google.com> CC: Stanislav Kinsburskii <stanislav.kinsburskii@gmail.com> CC: linux-ia64@vger.kernel.org CC: linux-kernel@vger.kernel.org --- arch/ia64/include/asm/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h index 83a492c8d298..c56ad21ba1e9 100644 --- a/arch/ia64/include/asm/io.h +++ b/arch/ia64/include/asm/io.h @@ -74,7 +74,7 @@ extern unsigned int num_io_spaces; * Change virtual addresses to physical addresses and vv. */ static inline unsigned long -virt_to_phys (volatile void *address) +virt_to_phys (const volatile void *address) { return (unsigned long) address - PAGE_OFFSET; }