Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp990972rwr; Thu, 27 Apr 2023 10:43:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6xuGBd/hOYiMXeqBKU9SxwIhvDzosGA+w/de5pwAG/2KtLVtwo9SgvlHDSjlT1FCXVc3Xe X-Received: by 2002:a17:90a:34c:b0:247:2baf:d6f with SMTP id 12-20020a17090a034c00b002472baf0d6fmr2449332pjf.0.1682617381423; Thu, 27 Apr 2023 10:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682617381; cv=none; d=google.com; s=arc-20160816; b=ZBOdPG0QdpGbocrAoas2RXnvLsrmYZrr/ZvzAXLGNFDf6nhZF3csbxX7z+sEAIL9aW 5Ijn07zEf+j0BQVGpVMy51F+HWEO3Sh8BosVGtx+tm+qDMKt54skELKXZjk5IUzXpdiO X0lCE99x6bPlxtdQstpfwDdRpbOzcewnE11bO8cIN+/XJ8yMXpMwzKFXu5odhLzHUa7C mRj96wBKIFv0jddMleTageQdEVZMqIhZRAJqBj71NUr9UfvKqFWEHqBU2vH16CIaaD3S Kh+zOsuUDDvEYNXvPtfrk2PoMCtIycH9g1eKVa8y+Htd7+SZKJbBXIq0W3Yw8KoHNMGp +Z3Q== 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=s/kg+M27AkKVchwO9jCgPJL2Mpa/KAVUq2YWw+ZkhKA=; b=vdwPgx9anHAu4ibyYBC3S31PcFeb8lhDg6JT02Z+TPBZgVD+h6FEOGB9LG2ejfaCxQ SOb4UYC6Pwoq/h/3Gt8DpWjI8ftamnClHvNDwZM+4aqECDC4IEf4QXTJwW+qr2V48oDU n9uO7+4XATv9RXePK7vCNGnH1stz8+2AUXoOM3F5uFf5UqmCWA1JYlpbQnPVRW/vZ0iR NhZEcA4UFowgi8037pk4MwHzuWfGhvjASFP3dyJg12JIo1d/Ogt76rw6jueI2UyX+M+4 48ueUy23ADym5UfsCYyGRVIUpHjdCTJY0AeQIC4AHuFryTAihHtfz7qcZaj9fQWHbCm/ tO+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=HfdRi3nz; 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 z1-20020a63d001000000b005023e0f160dsi19389101pgf.489.2023.04.27.10.42.49; Thu, 27 Apr 2023 10:43: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=HfdRi3nz; 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 S244584AbjD0Rmh (ORCPT + 99 others); Thu, 27 Apr 2023 13:42:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244443AbjD0RmX (ORCPT ); Thu, 27 Apr 2023 13:42:23 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7B93F49EF; Thu, 27 Apr 2023 10:42:10 -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 E386621C33E3; Thu, 27 Apr 2023 10:42:09 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E386621C33E3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1682617330; bh=s/kg+M27AkKVchwO9jCgPJL2Mpa/KAVUq2YWw+ZkhKA=; h=Subject:From:Cc:Date:In-Reply-To:References:From; b=HfdRi3nzr4I30thtNMUKY+2hg4LdPCEOftLVmSIa9WFvZT7qpe3uvR+IGqMSclfGz gQ6zKnodlgKFmd1DSYQWaUhwWFKPOvwgQUdF3CR0NtPrD7+LL+KUNDJZj1g9A09vOk Tc5eIwLJOdC7DmIOAZ/lAguWRahJQlVTyF76HQO4= Subject: [PATCH 3/7] mips: asm/io.h: Expect immutable pointer in isa_virt_to_bus prototype From: Stanislav Kinsburskii Cc: Stanislav Kinsburskii , Thomas Bogendoerfer , Geert Uytterhoeven , Michael Ellerman , Florian Fainelli , Arnd Bergmann , Stanislav Kinsburskii , Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 15 Apr 2023 04:17:36 -0700 Message-ID: <168155745691.13678.14513434425435520788.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 - isa_virt_to_bus - 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 ‘isa_virt_to_bus’ discards ‘const’ qualifier from pointer target type Signed-off-by: Stanislav Kinsburskii CC: Thomas Bogendoerfer CC: Geert Uytterhoeven CC: Michael Ellerman CC: Florian Fainelli CC: Arnd Bergmann CC: Stanislav Kinsburskii CC: Jiaxun Yang CC: linux-mips@vger.kernel.org CC: linux-kernel@vger.kernel.org --- arch/mips/include/asm/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index cc28d207a061..d78ca2e71f8c 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h @@ -137,7 +137,7 @@ static inline void * phys_to_virt(unsigned long address) /* * ISA I/O bus memory addresses are 1:1 with the physical address. */ -static inline unsigned long isa_virt_to_bus(volatile void *address) +static inline unsigned long isa_virt_to_bus(const volatile void *address) { return virt_to_phys(address); }