All of lore.kernel.org
 help / color / mirror / Atom feed
* [glemco:staging_rv_hybrid_automata 16/21] kernel/trace/rv/monitors/nomiss/nomiss.c:147:2: error: call to undeclared function 'check_trace_callback_type_sys_enter'; ISO C99 and later do not support implicit function declarations
@ 2025-08-12 17:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-12 17:45 UTC (permalink / raw)
  To: Gabriele Monaco; +Cc: oe-kbuild-all

tree:   https://gitlab.com/glemco/linux staging_rv_hybrid_automata
head:   623e09375a6cff536c784032b69fda43074355dd
commit: 43ecf0f94d82b0905099a8b48ef926ede7635d25 [16/21] rv: Add deadline monitors
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250813/202508130126.1UHPvAE7-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250813/202508130126.1UHPvAE7-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508130126.1UHPvAE7-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/trace/rv/monitors/nomiss/nomiss.c:147:2: error: call to undeclared function 'check_trace_callback_type_sys_enter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     147 |         rv_attach_trace_probe("nomiss", sys_enter, handle_syscall);
         |         ^
   include/rv/instrumentation.h:18:3: note: expanded from macro 'rv_attach_trace_probe'
      18 |                 check_trace_callback_type_##tp(rv_handler);                             \
         |                 ^
   <scratch space>:30:1: note: expanded from here
      30 | check_trace_callback_type_sys_enter
         | ^
   kernel/trace/rv/monitors/nomiss/nomiss.c:147:2: note: did you mean 'check_trace_callback_type_event_sor'?
   include/rv/instrumentation.h:18:3: note: expanded from macro 'rv_attach_trace_probe'
      18 |                 check_trace_callback_type_##tp(rv_handler);                             \
         |                 ^
   <scratch space>:30:1: note: expanded from here
      30 | check_trace_callback_type_sys_enter
         | ^
   kernel/trace/rv/monitors/sor/sor_trace.h:8:1: note: 'check_trace_callback_type_event_sor' declared here
       8 | DEFINE_EVENT(event_da_monitor_id, event_sor,
         | ^
   include/linux/tracepoint.h:608:2: note: expanded from macro 'DEFINE_EVENT'
     608 |         DECLARE_TRACE_EVENT(name, PARAMS(proto), PARAMS(args))
         |         ^
   include/linux/tracepoint.h:481:2: note: expanded from macro 'DECLARE_TRACE_EVENT'
     481 |         __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
         |         ^
   include/linux/tracepoint.h:270:2: note: expanded from macro '__DECLARE_TRACE'
     270 |         __DECLARE_TRACE_COMMON(name, PARAMS(proto), PARAMS(args), PARAMS(data_proto)) \
         |         ^
   include/linux/tracepoint.h:260:2: note: expanded from macro '__DECLARE_TRACE_COMMON'
     260 |         check_trace_callback_type_##name(void (*cb)(data_proto))        \
         |         ^
   <scratch space>:76:1: note: expanded from here
      76 | check_trace_callback_type_event_sor
         | ^
>> kernel/trace/rv/monitors/nomiss/nomiss.c:147:2: error: call to undeclared function 'register_trace_sys_enter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     147 |         rv_attach_trace_probe("nomiss", sys_enter, handle_syscall);
         |         ^
   include/rv/instrumentation.h:19:13: note: expanded from macro 'rv_attach_trace_probe'
      19 |                 WARN_ONCE(register_trace_##tp(rv_handler, NULL),                        \
         |                           ^
   <scratch space>:31:1: note: expanded from here
      31 | register_trace_sys_enter
         | ^
   kernel/trace/rv/monitors/nomiss/nomiss.c:147:2: note: did you mean 'register_trace_event_sor'?
   include/rv/instrumentation.h:19:13: note: expanded from macro 'rv_attach_trace_probe'
      19 |                 WARN_ONCE(register_trace_##tp(rv_handler, NULL),                        \
         |                           ^
   <scratch space>:31:1: note: expanded from here
      31 | register_trace_sys_enter
         | ^
   kernel/trace/rv/monitors/sor/sor_trace.h:8:1: note: 'register_trace_event_sor' declared here
       8 | DEFINE_EVENT(event_da_monitor_id, event_sor,
         | ^
   include/linux/tracepoint.h:608:2: note: expanded from macro 'DEFINE_EVENT'
     608 |         DECLARE_TRACE_EVENT(name, PARAMS(proto), PARAMS(args))
         |         ^
   include/linux/tracepoint.h:481:2: note: expanded from macro 'DECLARE_TRACE_EVENT'
     481 |         __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
         |         ^
   include/linux/tracepoint.h:270:2: note: expanded from macro '__DECLARE_TRACE'
     270 |         __DECLARE_TRACE_COMMON(name, PARAMS(proto), PARAMS(args), PARAMS(data_proto)) \
         |         ^
   include/linux/tracepoint.h:241:2: note: expanded from macro '__DECLARE_TRACE_COMMON'
     241 |         register_trace_##name(void (*probe)(data_proto), void *data)    \
         |         ^
   <scratch space>:70:1: note: expanded from here
      70 | register_trace_event_sor
         | ^
>> kernel/trace/rv/monitors/nomiss/nomiss.c:159:2: error: call to undeclared function 'unregister_trace_sys_enter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     159 |         rv_detach_trace_probe("nomiss", sys_enter, handle_syscall);
         |         ^
   include/rv/instrumentation.h:28:3: note: expanded from macro 'rv_detach_trace_probe'
      28 |                 unregister_trace_##tp(rv_handler, NULL);                                \
         |                 ^
   <scratch space>:42:1: note: expanded from here
      42 | unregister_trace_sys_enter
         | ^
   kernel/trace/rv/monitors/nomiss/nomiss.c:159:2: note: did you mean 'unregister_trace_event_sor'?
   include/rv/instrumentation.h:28:3: note: expanded from macro 'rv_detach_trace_probe'
      28 |                 unregister_trace_##tp(rv_handler, NULL);                                \
         |                 ^
   <scratch space>:42:1: note: expanded from here
      42 | unregister_trace_sys_enter
         | ^
   kernel/trace/rv/monitors/sor/sor_trace.h:8:1: note: 'unregister_trace_event_sor' declared here
       8 | DEFINE_EVENT(event_da_monitor_id, event_sor,
         | ^
   include/linux/tracepoint.h:608:2: note: expanded from macro 'DEFINE_EVENT'
     608 |         DECLARE_TRACE_EVENT(name, PARAMS(proto), PARAMS(args))
         |         ^
   include/linux/tracepoint.h:481:2: note: expanded from macro 'DECLARE_TRACE_EVENT'
     481 |         __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
         |         ^
   include/linux/tracepoint.h:270:2: note: expanded from macro '__DECLARE_TRACE'
     270 |         __DECLARE_TRACE_COMMON(name, PARAMS(proto), PARAMS(args), PARAMS(data_proto)) \
         |         ^
   include/linux/tracepoint.h:254:2: note: expanded from macro '__DECLARE_TRACE_COMMON'
     254 |         unregister_trace_##name(void (*probe)(data_proto), void *data)  \
         |         ^
   <scratch space>:74:1: note: expanded from here
      74 | unregister_trace_event_sor
         | ^
   3 errors generated.


vim +/check_trace_callback_type_sys_enter +147 kernel/trace/rv/monitors/nomiss/nomiss.c

   136	
   137	static int enable_nomiss(void)
   138	{
   139		int retval;
   140	
   141		retval = da_monitor_init();
   142		if (retval)
   143			return retval;
   144	
   145		rv_attach_trace_probe("nomiss", sched_dl_throttle, handle_dl_throttle);
   146		rv_attach_trace_probe("nomiss", sched_switch, handle_sched_switch);
 > 147		rv_attach_trace_probe("nomiss", sys_enter, handle_syscall);
   148		rv_attach_trace_probe("nomiss", sched_process_exit, handle_exit);
   149	
   150		return 0;
   151	}
   152	
   153	static void disable_nomiss(void)
   154	{
   155		rv_nomiss.enabled = 0;
   156	
   157		rv_detach_trace_probe("nomiss", sched_dl_throttle, handle_dl_throttle);
   158		rv_detach_trace_probe("nomiss", sched_switch, handle_sched_switch);
 > 159		rv_detach_trace_probe("nomiss", sys_enter, handle_syscall);
   160		rv_detach_trace_probe("nomiss", sched_process_exit, handle_exit);
   161	
   162		da_monitor_destroy();
   163	}
   164	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-12 17:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-12 17:45 [glemco:staging_rv_hybrid_automata 16/21] kernel/trace/rv/monitors/nomiss/nomiss.c:147:2: error: call to undeclared function 'check_trace_callback_type_sys_enter'; ISO C99 and later do not support implicit function declarations kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.