From nobody Mon Dec 29 00:36:15 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5267C4167B for ; Mon, 4 Dec 2023 11:58:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343786AbjLDL6S (ORCPT ); Mon, 4 Dec 2023 06:58:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235270AbjLDL5j (ORCPT ); Mon, 4 Dec 2023 06:57:39 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25C801730 for ; Mon, 4 Dec 2023 03:57:31 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACC81C433CA; Mon, 4 Dec 2023 11:57:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691051; bh=l3hz5mRSkD7DYuIne0Jscf5nMuXOjPSpfpHitUXLfNc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YYju0IOlb2TZrxG39W4fehNxMRmqlATtHntDxpY+g2sbOW2vqYsLSabsIN85X2IKB 522QAmTLBVu3ccT3mp1eO35f9ihoS8ikt6C71Q7laTkABSBmgOze/5ZU1siNfxrL61 wLZhksMb3BVJ1GH/1CER0bvdgTak3ycLpRy4a1X8N4smggealQfRClDU4Z+/HXv4As YHsH3CJxKh7SbOhBmpVJXnmDXpcblovN3gQzGtQrReuy+QcI1koELRFD76t4ZHnpSF WzoaLZrAxPg5gTIHb8aiBU/X04pEQnBdaV/eN8tzdncKEhW0gIHqFIGcHZJShlFico Opnidked/E+qA== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 06/20] mips: mark local function static if possible Date: Mon, 4 Dec 2023 12:56:56 +0100 Message-Id: <20231204115710.2247097-7-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231204115710.2247097-1-arnd@kernel.org> References: <20231204115710.2247097-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann These two functions are global but have no extern prototypes or other callers, so it's best to mark them as static, avoiding these warnings: arch/mips/kernel/mips-cm.c:204:13: error: no previous prototype for '__mips= _cm_l2sync_phys_base' [-Werror=3Dmissing-prototypes] arch/mips/mm/c-r4k.c:1827:12: error: no previous prototype for 'r4k_cache_i= nit_pm' [-Werror=3Dmissing-prototypes] Signed-off-by: Arnd Bergmann --- arch/mips/kernel/mips-cm.c | 2 +- arch/mips/mm/c-r4k.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/kernel/mips-cm.c b/arch/mips/kernel/mips-cm.c index 3f00788b0871..84b3affb9de8 100644 --- a/arch/mips/kernel/mips-cm.c +++ b/arch/mips/kernel/mips-cm.c @@ -201,7 +201,7 @@ phys_addr_t __mips_cm_phys_base(void) phys_addr_t mips_cm_phys_base(void) __attribute__((weak, alias("__mips_cm_phys_base"))); =20 -phys_addr_t __mips_cm_l2sync_phys_base(void) +static phys_addr_t __mips_cm_l2sync_phys_base(void) { u32 base_reg; =20 diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 187d1c16361c..0619e5296ff3 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c @@ -1828,7 +1828,7 @@ static struct notifier_block r4k_cache_pm_notifier_bl= ock =3D { .notifier_call =3D r4k_cache_pm_notifier, }; =20 -int __init r4k_cache_init_pm(void) +static int __init r4k_cache_init_pm(void) { return cpu_pm_register_notifier(&r4k_cache_pm_notifier_block); } --=20 2.39.2