Bug 219269

Summary: v6.10.10 kernel fails to build when CONFIG_MODULES is disabled
Product: Linux Reporter: Mustafa Bihny (smeazccg)
Component: KernelAssignee: Virtual assignee for kernel bugs (linux-kernel)
Status: NEW ---    
Severity: normal CC: regressions
Priority: P3    
Hardware: Intel   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

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