Skip to contentSkip to conversation

kallsysm: make arch_get_kallsym() static for now

PATCH New Ben Dooks 1 participant 1 message Jun 21, 2023

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 kallsysm: make arch_get_kallsym() static for now

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

---
 kernel/kallsyms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/kallsyms.c +1 -1
index 77747391f49b..b53c67f5ebb7 100644
@@ -659,7 +659,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;
Signature · 1 line
2.39.2