Message ID | 168155747955.13678.5648956145924030241.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 b10csp433955vqo; Thu, 27 Apr 2023 10:47:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Mw6w1xdMnlmnm++jcnvuUnGlgdOaLHIe0fGIS7MVNjlF5SPW6k6yvp0ET3U3lFgWYHaQO X-Received: by 2002:a17:903:22c3:b0:1a6:4541:73c with SMTP id y3-20020a17090322c300b001a64541073cmr2875499plg.33.1682617672831; Thu, 27 Apr 2023 10:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682617672; cv=none; d=google.com; s=arc-20160816; b=PsUBzJyAw+fKcciDWMFN4p0nDOAisZHSmkutnBShksJ+5uX2t4cpGgtax6rql11Lti ytpehxDFb9CbjBOB/32yUaOpFWzjUmL3EhrPvScJoU7AX0glkCQfJA/S7e9WXuIC9w5O 4iCCsOE3UUdHIiSAshHx+ME0VSRE98J4jzYNj9MxcclqkJpmSkFZ/riPgmtrQ+fhZwa8 6Yuw1TY2aXz19mW+n/wl1eQ8pDo7QMIr4AWHbCbsHYVtNZaqt15aDsbbz8iRVW2OoD3V Ri1wFeeEOs5Kkf9YuuM19qE8ysHO8T0o/KDuuDSZbaH+uYASVbfX/3PdwsBrCTLwyR9V U4NQ== 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=JzW52Omm51Pbk9wjpjdqd20u4BkUZE5fIgVHo4czr6g=; b=trjJlavieCND1y24K3BzS3q991laTgamIuMtkpCCMRe0A5yAZoitNyMyQ3e04Pn2RC 5ssLkIKauCXuMqizGCNuJkjqyyzwZ+/eoeF3VDVfNe0AvO+FPUe5NKXXhmTNPNKgWZ40 gow+z0DhPKy2AsJ4Tz/9jClaiPo7IYJglYaTnUg497bH442WDwn7deDrZmU6KuwuPtzw VAXslyMNTb/27g25GPOIWsloh0lv4jQ0DJ7YQcFHFFQFRNi9zqiKj6RrK0PlkmX2v7Jf I0G6hzUrC4z5rj2NjWwhmHjlBeU4XFvtsqnKvNtjln17A6kHrlgQWwA6ksBVROY2ViVV DC5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Ndu3v4Nv; 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 b2-20020a170902650200b0019ea8e6213esi18528068plk.102.2023.04.27.10.47.39; Thu, 27 Apr 2023 10:47:52 -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=Ndu3v4Nv; 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 S244599AbjD0RnJ (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Thu, 27 Apr 2023 13:43:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244608AbjD0Rmq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Apr 2023 13:42:46 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 46D515FE5; Thu, 27 Apr 2023 10:42:33 -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 590A721C33E1; Thu, 27 Apr 2023 10:42:32 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 590A721C33E1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1682617352; bh=JzW52Omm51Pbk9wjpjdqd20u4BkUZE5fIgVHo4czr6g=; h=Subject:From:Cc:Date:In-Reply-To:References:From; b=Ndu3v4Nv6DdxwdMWwYXsIdVK+/OKKnSlFxnwYRe5+4vYuhKkWuJa3H3ajz/keSZhL D9a//NBRM2gcEk/I1HTmQkqamXjCSkcS5/SjaAspvmoXWzVWrxPI/s1rau7sJ/cw7J VsYOBppFTptB2s2cZoejMUuCHM/XbqmID3JzPnl8= Subject: [PATCH 7/7] asm-generic/io.h: Expect immutable pointer in virt_to_phys From: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com> Cc: Stanislav Kinsburskii <stanislav.kinsburskii@gmail.com>, Arnd Bergmann <arnd@arndb.de>, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 15 Apr 2023 04:17:59 -0700 Message-ID: <168155747955.13678.5648956145924030241.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?1764352509141267073?= X-GMAIL-MSGID: =?utf-8?q?1764352509141267073?= |
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: Arnd Bergmann <arnd@arndb.de> CC: linux-arch@vger.kernel.org CC: linux-kernel@vger.kernel.org --- include/asm-generic/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index 587e7e9b9a37..ee9d9584e05b 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h @@ -1000,7 +1000,7 @@ static inline void iowrite64_rep(volatile void __iomem *addr, */ #ifndef virt_to_phys #define virt_to_phys virt_to_phys -static inline unsigned long virt_to_phys(volatile void *address) +static inline unsigned long virt_to_phys(const volatile void *address) { return __pa((unsigned long)address); }