diff options
author | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2024-07-10 01:36:31 +0200 |
---|---|---|
committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2024-07-10 02:47:00 +0200 |
commit | b10545b6b86b7a0b3e26b4c2a5c99b72d49bc4de (patch) | |
tree | a07fb7c2a10278f7ae842baac4cd42053acc40a6 /arch/x86/entry | |
parent | tracing/kprobes: Add symbol counting check when module loads (diff) | |
download | linux-b10545b6b86b7a0b3e26b4c2a5c99b72d49bc4de.tar.xz linux-b10545b6b86b7a0b3e26b4c2a5c99b72d49bc4de.zip |
tracing/kprobes: Fix build error when find_module() is not available
The kernel test robot reported that the find_module() is not available
if CONFIG_MODULES=n.
Fix this error by hiding find_modules() in #ifdef CONFIG_MODULES with
related rcu locks as try_module_get_by_name().
Link: https://lore.kernel.org/all/172056819167.201571.250053007194508038.stgit@devnote2/
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407070744.RcLkn8sq-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202407070917.VVUCBlaS-lkp@intel.com/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'arch/x86/entry')
0 files changed, 0 insertions, 0 deletions