Message ID | 168155746272.13678.16103862954212080276.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 b10csp433676vqo; Thu, 27 Apr 2023 10:47:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7x7pqInGOcko2HDMM5fa3+uLlJ2uqv6pz5/uqYknvC2yr5mEEkEhAQlxpl6F0OCOVd9k2G X-Received: by 2002:a17:90b:4d04:b0:24b:2e6a:24ed with SMTP id mw4-20020a17090b4d0400b0024b2e6a24edmr2686554pjb.37.1682617636267; Thu, 27 Apr 2023 10:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682617636; cv=none; d=google.com; s=arc-20160816; b=qW6/0LLtpvzuKKvhO9rDJs0+rKl5Ogd22wdpl8i8KWsFz+Bu3P6MkqBheQTwuZFWLJ URASLz4WFDiWlJ+Wt4mJeDl6LDKB2M+8k3jQtdSupPac4ks0e+4nfDntjT58NDHtImEU a9lkb3ZNX916V2uiOqz4eIaVoChrJ6CuM+AYVnCa8L8Rn9LlPADfAlrA9gT3E8Lm8Koj n2zrmxIrs0Nj3cEMlh9fJR4YkyvD8V0IE08uoNNHR/E0NnwEMA0nsxJ2O7IxhWlbZYnA cY5AMbC842hyVVHb+DtGrP/g48lbu15UZBwTIdMhZSlcecQJB9ov/mP1GooG4w8or5xI qWbw== 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=sj6LPYNvymIeZEc3MyNCG2Y2lTHGTHDS4BHT1bAwr3Y=; b=rXRekJRwwtphvPUo/zk8g5t9tu3M4C9OUyDDA0Okjska0Pn1HesQdbG+xYgdBwqHUW PTZ6r7vi3Rx5Xhj328lIrT7j97ulcJXnW1tC1iLz6SmLjefo9qorCOQk2p2SNRpSd0Ux TTwq/ji1NTckg3RRPG5Ov2p+QysgsuVKDRzwkhhGt8YP1Bo8dkIGwZIFzj42B+hZgi7f gRLhIA0oouuk6L4/V1xjLwJCw/YiL0kacG6pCRlN+UiRV6BSSjBxHzBbmJSfK4sZ8sau K9CWithIhm4ejMDV6xtOxLXWDHIep2UE5Mh5qxXBPP5aXhtbNA7wBIhO/VRe8cF9ip6W i19w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Z63G6khx; 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 y185-20020a638ac2000000b0051344dd6049si19674044pgd.27.2023.04.27.10.47.01; Thu, 27 Apr 2023 10:47:16 -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=Z63G6khx; 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 S244593AbjD0Rmq (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Thu, 27 Apr 2023 13:42:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244519AbjD0Rmd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Apr 2023 13:42:33 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 252565599; Thu, 27 Apr 2023 10:42:16 -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 8806821C33E1; Thu, 27 Apr 2023 10:42:15 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8806821C33E1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1682617335; bh=sj6LPYNvymIeZEc3MyNCG2Y2lTHGTHDS4BHT1bAwr3Y=; h=Subject:From:Cc:Date:In-Reply-To:References:From; b=Z63G6khxN1OPq0ZG7hjZeqCgnQ5dGb2R4fM1LshMq7Ib3jI0XzV9Hjp1g+/hL2TBe 1B3HjnIiQHcC967R9SnMk6mY1Jtmh8zcJ2gIhGAwmINGBN2VpJODCf0+HD1hue4DwR NMtoUFf36vlRNMFGNZ1dUod0jepQDsbhlr+RbQ2o= Subject: [PATCH 4/7] hexagon: 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>, Brian Cain <bcain@quicinc.com>, Linus Walleij <linus.walleij@linaro.org>, Mark Brown <broonie@kernel.org>, linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 15 Apr 2023 04:17:42 -0700 Message-ID: <168155746272.13678.16103862954212080276.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?1764352470636568403?= X-GMAIL-MSGID: =?utf-8?q?1764352470636568403?= |
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: Brian Cain <bcain@quicinc.com> CC: Linus Walleij <linus.walleij@linaro.org> CC: Mark Brown <broonie@kernel.org> CC: linux-hexagon@vger.kernel.org CC: linux-kernel@vger.kernel.org --- arch/hexagon/include/asm/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/hexagon/include/asm/io.h b/arch/hexagon/include/asm/io.h index 46a099de85b7..facbd7467dd3 100644 --- a/arch/hexagon/include/asm/io.h +++ b/arch/hexagon/include/asm/io.h @@ -46,7 +46,7 @@ extern void __raw_writesl(void __iomem *addr, const void *data, int wordlen); * virt_to_phys - map virtual address to physical * @address: address to map */ -static inline unsigned long virt_to_phys(volatile void *address) +static inline unsigned long virt_to_phys(const volatile void *address) { return __pa(address); }