lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220721151040.359389-1-ben-linux@fluff.org>
Date:   Thu, 21 Jul 2022 16:10:40 +0100
From:   Ben Dooks <ben-linux@...ff.org>
To:     linux-kernel@...r.kernel.org
Cc:     Ben Dooks <ben-linux@...ff.org>
Subject: [PATCH] kallsyms: make arch_get_kallsym() static

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 declared. Should it be static?

Signed-off-by: Ben Dooks <ben-linux@...ff.org>
---
 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;
 };
 
-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;
-- 
2.35.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ