Skip to contentSkip to conversation

kernel/trace/trace_events.c:860:5: warning: 'CONFIG_MODULES' is not defined, evaluates to 0

PATCH kernel test robot 1 participant 1 message Jan 18, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace trace/for-next
head:   542079b4b12e89f82c8a689b6e9b119ab7d52018
commit: b355247df104ef6644288884afd2c08b7bf49897 [21/22] tracing: Cache ":mod:" events for modules not loaded yet
config: i386-buildonly-randconfig-005-20250118 (https://download.01.org/0day-ci/archive/20250119/[email protected]/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250119/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> kernel/trace/trace_events.c:860:5: warning: 'CONFIG_MODULES' is not defined, evaluates to 0 [-Wundef]

860 | #if CONFIG_MODULES
| ^
1 warning generated.

vim +/CONFIG_MODULES +860 kernel/trace/trace_events.c

859

 > 860	#if CONFIG_MODULES

861 struct event_mod_load {
862 struct list_head list;
863 char *module;
864 char *match;
865 char *system;
866 char *event;
867 };
868

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki