Skip to contentSkip to conversation

include/rv/ltl_monitor.h:75:44: error: incompatible function pointer types passing 'void (void *, struct task_struct *, unsigned long)' to parameter of type 'void (*)(void *, struct task_struct *, u64)' (aka 'void (*)(void *, struct task_struct *, unsigne...

PATCH kernel test robot 1 participant 1 message Sep 3, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

[community] /zdci/src/lkp/sbin/sync-produce --item /zdci/kbuild/indicators/ed/edd3cb05c00a040dc72bed20b14b5ba865188bce-first_error_kconfig --flag create-dir

Hi Simon,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://github.com/brauner/linux.git vfs.all
head:   d02ae3528998236f054c6f56002ab858cc77eb9a
commit: edd3cb05c00a040dc72bed20b14b5ba865188bce [74/95] copy_process: pass clone_flags as u64 across calltree
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250904/[email protected]/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250904/[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 >>):

In file included from kernel/trace/rv/monitors/sleep/sleep.c:23:

>> include/rv/ltl_monitor.h:75:44: error: incompatible function pointer types passing 'void (void *, struct task_struct *, unsigned long)' to parameter of type 'void (*)(void *, struct task_struct *, u64)' (aka 'void (*)(void *, struct task_struct *, unsigned long long)') [-Wincompatible-function-pointer-types]
      75 |         rv_attach_trace_probe(name, task_newtask, handle_task_newtask);
         |                                                   ^~~~~~~~~~~~~~~~~~~
   include/rv/instrumentation.h:18:34: note: expanded from macro 'rv_attach_trace_probe'
      18 |                 check_trace_callback_type_##tp(rv_handler);                             \
         |                                                ^~~~~~~~~~
   include/trace/events/task.h:9:1: note: passing argument to parameter 'cb' here
       9 | TRACE_EVENT(task_newtask,
         | ^
   include/linux/tracepoint.h:619:2: note: expanded from macro 'TRACE_EVENT'
     619 |         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:42: note: expanded from macro '__DECLARE_TRACE_COMMON'
     260 |         check_trace_callback_type_##name(void (*cb)(data_proto))        \
         |                                                 ^
   In file included from kernel/trace/rv/monitors/sleep/sleep.c:23:
>> include/rv/ltl_monitor.h:75:44: error: incompatible function pointer types passing 'void (void *, struct task_struct *, unsigned long)' to parameter of type 'void (*)(void *, struct task_struct *, u64)' (aka 'void (*)(void *, struct task_struct *, unsigned long long)') [-Wincompatible-function-pointer-types]
      75 |         rv_attach_trace_probe(name, task_newtask, handle_task_newtask);
         |                                                   ^~~~~~~~~~~~~~~~~~~
   include/rv/instrumentation.h:19:33: note: expanded from macro 'rv_attach_trace_probe'
      19 |                 WARN_ONCE(register_trace_##tp(rv_handler, NULL),                        \
         |                                               ^~~~~~~~~~
   include/asm-generic/bug.h:152:18: note: expanded from macro 'WARN_ONCE'
     152 |         DO_ONCE_LITE_IF(condition, WARN, 1, format)
         |                         ^~~~~~~~~
   include/linux/once_lite.h:28:27: note: expanded from macro 'DO_ONCE_LITE_IF'
      28 |                 bool __ret_do_once = !!(condition);                     \
         |                                         ^~~~~~~~~
   include/trace/events/task.h:9:1: note: passing argument to parameter 'probe' here
       9 | TRACE_EVENT(task_newtask,
         | ^
   include/linux/tracepoint.h:619:2: note: expanded from macro 'TRACE_EVENT'
     619 |         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:31: note: expanded from macro '__DECLARE_TRACE_COMMON'
     241 |         register_trace_##name(void (*probe)(data_proto), void *data)    \
         |                                      ^
   In file included from kernel/trace/rv/monitors/sleep/sleep.c:23:
   include/rv/ltl_monitor.h:92:44: error: incompatible function pointer types passing 'void (void *, struct task_struct *, unsigned long)' to parameter of type 'void (*)(void *, struct task_struct *, u64)' (aka 'void (*)(void *, struct task_struct *, unsigned long long)') [-Wincompatible-function-pointer-types]
      92 |         rv_detach_trace_probe(name, task_newtask, handle_task_newtask);
         |                                                   ^~~~~~~~~~~~~~~~~~~
   include/rv/instrumentation.h:28:25: note: expanded from macro 'rv_detach_trace_probe'
      28 |                 unregister_trace_##tp(rv_handler, NULL);                                \
         |                                       ^~~~~~~~~~
   include/trace/events/task.h:9:1: note: passing argument to parameter 'probe' here
       9 | TRACE_EVENT(task_newtask,
         | ^
   include/linux/tracepoint.h:619:2: note: expanded from macro 'TRACE_EVENT'
     619 |         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:33: note: expanded from macro '__DECLARE_TRACE_COMMON'
     254 |         unregister_trace_##name(void (*probe)(data_proto), void *data)  \
         |                                        ^

3 errors generated.

vim +75 include/rv/ltl_monitor.h

a9769a5b987838 Nam Cao 2025-07-09  63  
a9769a5b987838 Nam Cao 2025-07-09  64  static int ltl_monitor_init(void)
a9769a5b987838 Nam Cao 2025-07-09  65  {
a9769a5b987838 Nam Cao 2025-07-09  66  	struct task_struct *g, *p;
a9769a5b987838 Nam Cao 2025-07-09  67  	int ret, cpu;
a9769a5b987838 Nam Cao 2025-07-09  68  
a9769a5b987838 Nam Cao 2025-07-09  69  	ret = rv_get_task_monitor_slot();
a9769a5b987838 Nam Cao 2025-07-09  70  	if (ret < 0)
a9769a5b987838 Nam Cao 2025-07-09  71  		return ret;
a9769a5b987838 Nam Cao 2025-07-09  72  
a9769a5b987838 Nam Cao 2025-07-09  73  	ltl_monitor_slot = ret;
a9769a5b987838 Nam Cao 2025-07-09  74  
a9769a5b987838 Nam Cao 2025-07-09 @75  	rv_attach_trace_probe(name, task_newtask, handle_task_newtask);
a9769a5b987838 Nam Cao 2025-07-09  76  
a9769a5b987838 Nam Cao 2025-07-09  77  	read_lock(&tasklist_lock);
a9769a5b987838 Nam Cao 2025-07-09  78  
a9769a5b987838 Nam Cao 2025-07-09  79  	for_each_process_thread(g, p)
a9769a5b987838 Nam Cao 2025-07-09  80  		ltl_task_init(p, false);
a9769a5b987838 Nam Cao 2025-07-09  81  
a9769a5b987838 Nam Cao 2025-07-09  82  	for_each_present_cpu(cpu)
a9769a5b987838 Nam Cao 2025-07-09  83  		ltl_task_init(idle_task(cpu), false);
a9769a5b987838 Nam Cao 2025-07-09  84  
a9769a5b987838 Nam Cao 2025-07-09  85  	read_unlock(&tasklist_lock);
a9769a5b987838 Nam Cao 2025-07-09  86  
a9769a5b987838 Nam Cao 2025-07-09  87  	return 0;
a9769a5b987838 Nam Cao 2025-07-09  88  }
a9769a5b987838 Nam Cao 2025-07-09  89  

:::::: The code at line 75 was first introduced by commit
:::::: a9769a5b987838f03f3dd57b097794cd4c691098 rv: Add support for LTL monitors

:::::: TO: Nam Cao <[email protected]> :::::: CC: Steven Rostedt (Google) <[email protected]>

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