summaryrefslogtreecommitdiffstats
path: root/kernel/module
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2022-10-25 15:41:41 +0200
committerAlexei Starovoitov <ast@kernel.org>2022-10-25 10:14:50 -0700
commit73feb8d5fa3b755bb51077c0aabfb6aa556fd498 (patch)
treecd4533fa24560e7133e635ca0dc15461a7cb0c39 /kernel/module
parent152e60e3fa2fa383357b4bac6306e91f6b25e32c (diff)
downloadlinux-73feb8d5fa3b755bb51077c0aabfb6aa556fd498.tar.gz
linux-73feb8d5fa3b755bb51077c0aabfb6aa556fd498.tar.bz2
linux-73feb8d5fa3b755bb51077c0aabfb6aa556fd498.zip
kallsyms: Make module_kallsyms_on_each_symbol generally available
Making module_kallsyms_on_each_symbol generally available, so it can be used outside CONFIG_LIVEPATCH option in following changes. Rather than adding another ifdef option let's make the function generally available (when CONFIG_KALLSYMS and CONFIG_MODULES options are defined). Cc: Christoph Hellwig <hch@lst.de> Acked-by: Song Liu <song@kernel.org> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Link: https://lore.kernel.org/r/20221025134148.3300700-2-jolsa@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/module')
-rw-r--r--kernel/module/kallsyms.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/module/kallsyms.c b/kernel/module/kallsyms.c
index f5c5c9175333..4523f99b0358 100644
--- a/kernel/module/kallsyms.c
+++ b/kernel/module/kallsyms.c
@@ -494,7 +494,6 @@ unsigned long module_kallsyms_lookup_name(const char *name)
return ret;
}
-#ifdef CONFIG_LIVEPATCH
int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *,
struct module *, unsigned long),
void *data)
@@ -531,4 +530,3 @@ out:
mutex_unlock(&module_mutex);
return ret;
}
-#endif /* CONFIG_LIVEPATCH */