From nobody Sat Feb 7 12:40:59 2026 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 7590AEB64D7 for ; Wed, 21 Jun 2023 07:27:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231528AbjFUH11 (ORCPT ); Wed, 21 Jun 2023 03:27:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231450AbjFUH0n (ORCPT ); Wed, 21 Jun 2023 03:26:43 -0400 Received: from imap5.colo.codethink.co.uk (imap5.colo.codethink.co.uk [78.40.148.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85D56269D for ; Wed, 21 Jun 2023 00:25:33 -0700 (PDT) Received: from [167.98.27.226] (helo=rainbowdash) by imap5.colo.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1qBsDZ-00C8BE-W0; Wed, 21 Jun 2023 08:25:30 +0100 Received: from ben by rainbowdash with local (Exim 4.96) (envelope-from ) id 1qBsDa-001cqW-1n; Wed, 21 Jun 2023 08:25:30 +0100 From: Ben Dooks To: linux-kernel@vger.kernel.org Cc: Ben Dooks Subject: [PATCH] kallsysm: make arch_get_kallsym() static for now Date: Wed, 21 Jun 2023 08:25:29 +0100 Message-Id: <20230621072529.387643-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.39.2 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" The arch_get_kallsym() isn't currnetly being used outside of the file and is not defined in any header file either. Make it static until there is a user, to remove the following sparse warning; kernel/kallsyms.c:662:12: warning: symbol 'arch_get_kallsym' was not declar= ed. Should it be static? Signed-off-by: Ben Dooks --- kernel/kallsyms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 77747391f49b..b53c67f5ebb7 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c @@ -659,7 +659,7 @@ struct kallsym_iter { int show_value; }; =20 -int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value, +static int arch_get_kallsym(unsigned int symnum, unsigned long *value, char *type, char *name) { return -EINVAL; --=20 2.39.2