* [PATCH] kallsysm: make arch_get_kallsym() static for now
@ 2023-06-21 7:25 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2023-06-21 7:25 UTC (permalink / raw)
To: linux-kernel; +Cc: Ben Dooks
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?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
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;
};
-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.39.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-21 7:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-21 7:25 [PATCH] kallsysm: make arch_get_kallsym() static for now Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).