kernel/trace/trace_events.c:3583:13: error: conflicting types for 'update_cache'; have 'void(struct trace_array *, struct module *)'
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 1573c8d4cb206a2d1454ff711e79f8df2353290b commit: b355247df104ef6644288884afd2c08b7bf49897 [9182/10024] tracing: Cache ":mod:" events for modules not loaded yet config: openrisc-allyesconfig (https://download.01.org/0day-ci/archive/20250121/[email protected]/config) compiler: or1k-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250121/[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 errors (new ones prefixed by >>):
>> kernel/trace/trace_events.c:3583:13: error: conflicting types for 'update_cache'; have 'void(struct trace_array *, struct module *)'
3583 | static void update_cache(struct trace_array *tr, struct module *mod)
| ^~~~~~~~~~~~
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:30,
from include/linux/security.h:33,
from kernel/trace/trace_events.c:15: arch/openrisc/include/asm/pgtable.h:380:13: note: previous declaration of 'update_cache' with type 'void(struct vm_area_struct *, long unsigned int, pte_t *)'
380 | extern void update_cache(struct vm_area_struct *vma,
| ^~~~~~~~~~~~
vim +3583 kernel/trace/trace_events.c
3576
3577 #define for_each_event(event, start, end) \
3578 for (event = start; \
3579 (unsigned long)event < (unsigned long)end; \
3580 event++)
3581
3582 #ifdef CONFIG_MODULES
> 3583 static void update_cache(struct trace_array *tr, struct module *mod)
3584 {
3585 struct event_mod_load *event_mod, *n;
3586
3587 list_for_each_entry_safe(event_mod, n, &tr->mod_events, list) {
3588 if (strcmp(event_mod->module, mod->name) != 0)
3589 continue;
3590
3591 __ftrace_set_clr_event_nolock(tr, event_mod->match,
3592 event_mod->system,
3593 event_mod->event, 1, mod->name);
3594 free_event_mod(event_mod);
3595 }
3596 }
3597
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki