Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2651333rdb; Mon, 4 Dec 2023 03:58:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6/65rjqF2TPwlaUcatOi2Y6vyyRBOqulrFNdEt28ctMUkkqGWVx3wvn7e6p0LEKVXY4SE X-Received: by 2002:a05:6a00:23c4:b0:6cb:cd66:2102 with SMTP id g4-20020a056a0023c400b006cbcd662102mr4596693pfc.4.1701691118269; Mon, 04 Dec 2023 03:58:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691118; cv=none; d=google.com; s=arc-20160816; b=hta4I/bEAgThVdQZD0affujfaAHr4Fbwd/Yql1uDXi7n+6XWrfSORLWvYaakjXGaTV xQMrx3169nkj6u5RS3zTzGytRd7caWV0CFSDOSt0WG0pdavRR0ivIBi25l3fpFXlmcse 4Ro4ciwDwGT+BOXYMPx7Q9sPejrEtJ/n4KQPVdhvf7Fcd1zxTBoIUk/bcv10marYz7Sn OS+fzXASm4XMdiH0C9pNWnhSS7q0tyhl7N7qgiAtk6w1C7R2T/S5vN30qvBIt5iWf7Ac j4zzur0H7aFvwRvlyfFj2SynKnDeo2ERU5ioH8RjoqRqsTBYnD3YdN0QRTMq7H+1F/Q+ jS4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fLdG2CjlslNnQU4G1ZRxqzeGWrkz1nep4zASwzIqCVY=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=gKyCm1C3NO4AB16IYVh8bCSjdKevrN9RG2UYrKQF3QxO8iFp1bNtWJGMH8+1QXn0eY CsE0842T5l7oM+9Q15gI3rxokieGLRSIWEPxUcgxyFu2RX6JQGp7yPS/+8zWwlhrkmVE tAaMZ03wztHD2OZ0ctvFvVAN6qswb+73Z2NrMiWTOYq0noKDh4mj3dH/eJ4xE6/Agch4 BXxUntMmCjTMns8I64nQjTueDonm+fz2QlhHOJfek8UbXD/rTZ9wlRtaIrqJrpEEaaja RH1myP4xU8/aoVxK7rj5kQApJ9JQmO3vJnXniGT+Khv7kJy3v9JGWlwM4OpXGKRVKS04 VAVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YYju0IOl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bq24-20020a056a000e1800b006cb75e0f91bsi7794660pfb.45.2023.12.04.03.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:58:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YYju0IOl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7D5748094D5B; Mon, 4 Dec 2023 03:58:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343751AbjLDL6Q (ORCPT + 99 others); Mon, 4 Dec 2023 06:58:16 -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: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:58:35 -0800 (PST) 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=missing-prototypes] arch/mips/mm/c-r4k.c:1827:12: error: no previous prototype for 'r4k_cache_init_pm' [-Werror=missing-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"))); -phys_addr_t __mips_cm_l2sync_phys_base(void) +static phys_addr_t __mips_cm_l2sync_phys_base(void) { u32 base_reg; 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_block = { .notifier_call = r4k_cache_pm_notifier, }; -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); } -- 2.39.2