Bug 219269 - v6.10.10 kernel fails to build when CONFIG_MODULES is disabled
Summary: v6.10.10 kernel fails to build when CONFIG_MODULES is disabled
Status: NEW
Alias: None
Product: Linux
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: Intel Linux
: P3 normal
Assignee: Virtual assignee for kernel bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-12 22:59 UTC by Mustafa Bihny
Modified: 2024-09-14 14:53 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Mustafa Bihny 2024-09-12 22:59:00 UTC
Fair enough, you get a compiler warning:

kernel/trace/trace_kprobe.c: In function ‘validate_probe_symbol’:
kernel/trace/trace_kprobe.c:810:23: error: implicit declaration of function ‘find_module’; did you mean init_module’? [-Wimplicit-function-declaration]
  810 |                 mod = find_module(modname);
      |                       ^~~~~~~~~~~
      |                       init_module
kernel/trace/trace_kprobe.c:810:21: error: assignment to ‘struct module *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  810 |                 mod = find_module(modname);
      |    

but there is no find_module symbol when CONFIG_MODULES is disabled.
Comment 1 The Linux kernel's regression tracker (Thorsten Leemhuis) 2024-09-14 14:53:17 UTC
A patch to fix this was queued for the next 6.10.y release

Note You need to log in before you can comment on or make changes to this bug.