From nobody Fri Apr 17 22:30:24 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 DC2B4C43334 for ; Thu, 21 Jul 2022 15:10:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230261AbiGUPKs (ORCPT ); Thu, 21 Jul 2022 11:10:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbiGUPKp (ORCPT ); Thu, 21 Jul 2022 11:10:45 -0400 X-Greylist: delayed 1120 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 21 Jul 2022 08:10:43 PDT Received: from luna (cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net [86.15.83.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3922068DE6 for ; Thu, 21 Jul 2022 08:10:43 -0700 (PDT) Received: from ben by luna with local (Exim 4.96) (envelope-from ) id 1oEXp3-001VUo-10; Thu, 21 Jul 2022 16:10:41 +0100 From: Ben Dooks To: linux-kernel@vger.kernel.org Cc: Ben Dooks Subject: [PATCH] kallsyms: make arch_get_kallsym() static Date: Thu, 21 Jul 2022 16:10:40 +0100 Message-Id: <20220721151040.359389-1-ben-linux@fluff.org> X-Mailer: git-send-email 2.35.1 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() function is not used anywhere in the kernel now, so it should at-least be static or just be removed as there are no users. Making it static fixes the following sparse warning: kernel/kallsyms.c:590: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 fbdf8d3279ac..14922fb21f7b 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c @@ -587,7 +587,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.35.1