]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kallsyms: Make module_kallsyms_on_each_symbol generally available
authorJiri Olsa <jolsa@kernel.org>
Tue, 25 Oct 2022 13:41:41 +0000 (15:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:18:40 +0000 (15:18 +0100)
commit9dd295341dc17dc886bc0cdf24ef88150fed6526
tree6c3b2ed3273d8809ea8af3b6bc1eb020570d2abd
parent29cb16577189b1db9b39d4efce5e37a7c4acc183
kallsyms: Make module_kallsyms_on_each_symbol generally available

commit 73feb8d5fa3b755bb51077c0aabfb6aa556fd498 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/module.h
kernel/module/kallsyms.c