Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp991633rwr; Thu, 27 Apr 2023 10:43:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4F8Sa+S+UM1NEZloXToXi68l7xQrGqlKSwIdDiXdLVUp9sZJJvtQC6wzEiR13fZNdr4ffi X-Received: by 2002:a17:90a:1983:b0:23d:1bef:8594 with SMTP id 3-20020a17090a198300b0023d1bef8594mr2393005pji.1.1682617415487; Thu, 27 Apr 2023 10:43:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682617415; cv=none; d=google.com; s=arc-20160816; b=hxRYAzf9ng/+oNNrQ8R2lyOkfq3FAw5+4HabuVKyQVE7/dhO5jK8MXAMZchKf5K0Gq uo6pGAanbbXVELTPYaGXM83DANQMLvFp/VLsoiB/54b2h3ZEKW+g7wDB5Vwa1kc/cR6G INT7KVV6O1SCv2yMw1KOfAO0rnW2ASVqwfosscTsHlK+7DC0WkmaySwUST+9175lhWC4 JugVlzS1DqUmOXBL5YRGOY4S8Z0WNHpuLjGbogHpTuC3l/ifrxMsmpud1lhZ7HFzUu24 5B9P2UfNYZvfZVCsbvNpLLFL5WKTDaiz9Oo8BygEEWhnAfDd+WbHuFgDokRh5TRvNbr4 k00w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a655a8e000000b0051b72db6281si19205162pgt.456.2023.04.27.10.43.20; Thu, 27 Apr 2023 10:43:35 -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 S244196AbjD0Rmu (ORCPT + 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 ); 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 Cc: Stanislav Kinsburskii , Geert Uytterhoeven , Helge Deller , Arnd Bergmann , Andrew Morton , Bjorn Helgaas , Stanislav Kinsburskii , 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Stanislav Kinsburskii 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 CC: Geert Uytterhoeven CC: Helge Deller CC: Arnd Bergmann CC: Andrew Morton CC: Bjorn Helgaas CC: Stanislav Kinsburskii 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; }