mailweb.openeuler.org
Manage this list

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

Kernel

Threads by month
  • ----- 2025 -----
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2021 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2020 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2019 -----
  • December
kernel@openeuler.org

  • 5 participants
  • 18459 discussions
[openeuler:OLK-6.6 2329/2329] include/trace/events/kmem.h:441:10: error: passing argument 2 of '__traceiter_spe_boost_spe_record' from incompatible pointer type
by kernel test robot 29 May '25

29 May '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 66b0cef2a959be1562a528e3d8cc260dc3803e61 commit: c99ab2e30089c85721b1d05b616cfb7daacf32d6 [2329/2329] arm-spe: Export boost SPE sampling info via tracefs tracepoint config: arm64-randconfig-003-20250529 (https://download.01.org/0day-ci/archive/20250529/202505290250.Bj46FlhO-lkp@…) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250529/202505290250.Bj46FlhO-lkp@…) 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(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505290250.Bj46FlhO-lkp@intel.com/ All error/warnings (new ones prefixed by >>): include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:281:40: note: in definition of macro '__DECLARE_TRACE' unregister_trace_##name(void (*probe)(data_proto), void *data) \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:287:46: note: in definition of macro '__DECLARE_TRACE' check_trace_callback_type_##name(void (*cb)(data_proto)) \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h:439:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:252:32: note: in definition of macro '__DECLARE_TRACE' extern int __traceiter_##name(data_proto); \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h:439:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:255:34: note: in definition of macro '__DECLARE_TRACE' static inline void trace_##name(proto) \ ^~~~~ include/linux/tracepoint.h:432:24: note: in expansion of macro 'PARAMS' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: In function 'trace_spe_boost_spe_record': >> include/trace/events/kmem.h:441:10: error: passing argument 2 of '__traceiter_spe_boost_spe_record' from incompatible pointer type [-Werror=incompatible-pointer-types] TP_ARGS(record), ^~~~~~ include/linux/tracepoint.h:177:62: note: in definition of macro '__DO_TRACE_CALL' #define __DO_TRACE_CALL(name, args) __traceiter_##name(NULL, args) ^~~~ include/linux/tracepoint.h:217:25: note: in expansion of macro 'TP_ARGS' __DO_TRACE_CALL(name, TP_ARGS(args)); \ ^~~~~~~ include/linux/tracepoint.h:258:4: note: in expansion of macro '__DO_TRACE' __DO_TRACE(name, \ ^~~~~~~~~~ include/linux/tracepoint.h:259:5: note: in expansion of macro 'TP_ARGS' TP_ARGS(args), \ ^~~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:432:39: note: in expansion of macro 'PARAMS' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:37: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:441:2: note: in expansion of macro 'TP_ARGS' TP_ARGS(record), ^~~~~~~ include/trace/events/kmem.h:439:39: note: expected 'struct mem_sampling_record *' but argument is of type 'struct mem_sampling_record *' TP_PROTO(struct mem_sampling_record *record), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ include/linux/tracepoint.h:252:32: note: in definition of macro '__DECLARE_TRACE' extern int __traceiter_##name(data_proto); \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: At top level: include/trace/events/kmem.h:439:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:229:44: note: in definition of macro '__DECLARE_TRACE_RCU' static inline void trace_##name##_rcuidle(proto) \ ^~~~~ include/linux/tracepoint.h:265:28: note: in expansion of macro 'PARAMS' __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:432:24: note: in expansion of macro 'PARAMS' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: In function 'trace_spe_boost_spe_record_rcuidle': >> include/trace/events/kmem.h:441:10: error: passing argument 2 of '__traceiter_spe_boost_spe_record' from incompatible pointer type [-Werror=incompatible-pointer-types] TP_ARGS(record), ^~~~~~ include/linux/tracepoint.h:177:62: note: in definition of macro '__DO_TRACE_CALL' #define __DO_TRACE_CALL(name, args) __traceiter_##name(NULL, args) ^~~~ include/linux/tracepoint.h:217:25: note: in expansion of macro 'TP_ARGS' __DO_TRACE_CALL(name, TP_ARGS(args)); \ ^~~~~~~ include/linux/tracepoint.h:232:4: note: in expansion of macro '__DO_TRACE' __DO_TRACE(name, \ ^~~~~~~~~~ include/linux/tracepoint.h:233:5: note: in expansion of macro 'TP_ARGS' TP_ARGS(args), \ ^~~~~~~ include/linux/tracepoint.h:265:2: note: in expansion of macro '__DECLARE_TRACE_RCU' __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:265:43: note: in expansion of macro 'PARAMS' __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:432:39: note: in expansion of macro 'PARAMS' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:37: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:441:2: note: in expansion of macro 'TP_ARGS' TP_ARGS(record), ^~~~~~~ include/trace/events/kmem.h:439:39: note: expected 'struct mem_sampling_record *' but argument is of type 'struct mem_sampling_record *' TP_PROTO(struct mem_sampling_record *record), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ include/linux/tracepoint.h:252:32: note: in definition of macro '__DECLARE_TRACE' extern int __traceiter_##name(data_proto); \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: At top level: include/trace/events/kmem.h:439:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:268:38: note: in definition of macro '__DECLARE_TRACE' register_trace_##name(void (*probe)(data_proto), void *data) \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h:439:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:274:43: note: in definition of macro '__DECLARE_TRACE' register_trace_prio_##name(void (*probe)(data_proto), void *data,\ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' -- ^~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/linux/tracepoint.h:306:7: note: previous declaration of '__probestub_mm_spe_record' was here void __probestub_##_name(void *__data, proto); \ ^~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ In file included from <command-line>: include/linux/static_call_types.h:15:34: error: conflicting types for '__SCT__tp_func_mm_spe_record' #define STATIC_CALL_TRAMP_PREFIX __SCT__ ^~~~~~~ include/linux/compiler_types.h:74:23: note: in definition of macro '___PASTE' #define ___PASTE(a,b) a##b ^ include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~ include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/static_call_types.h:39:22: note: in expansion of macro 'STATIC_CALL_TRAMP' extern typeof(func) STATIC_CALL_TRAMP(name); ^~~~~~~~~~~~~~~~~ include/linux/static_call.h:298:2: note: in expansion of macro 'DECLARE_STATIC_CALL' DECLARE_STATIC_CALL(name, _func); \ ^~~~~~~~~~~~~~~~~~~ include/linux/static_call.h:304:2: note: in expansion of macro '__DEFINE_STATIC_CALL' __DEFINE_STATIC_CALL(name, _func, _func) ^~~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:338:2: note: in expansion of macro 'DEFINE_STATIC_CALL' DEFINE_STATIC_CALL(tp_func_##_name, __traceiter_##_name); ^~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/linux/static_call_types.h:15:34: note: previous declaration of '__SCT__tp_func_mm_spe_record' was here #define STATIC_CALL_TRAMP_PREFIX __SCT__ ^~~~~~~ include/linux/compiler_types.h:74:23: note: in definition of macro '___PASTE' #define ___PASTE(a,b) a##b ^ include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~ include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/static_call_types.h:39:22: note: in expansion of macro 'STATIC_CALL_TRAMP' extern typeof(func) STATIC_CALL_TRAMP(name); ^~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:253:2: note: in expansion of macro 'DECLARE_STATIC_CALL' DECLARE_STATIC_CALL(tp_func_##name, __traceiter_##name); \ ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ In file included from include/trace/events/kmem.h:9, from mm/slab_common.c:35: include/trace/events/kmem.h:439:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:305:40: note: in definition of macro 'DEFINE_TRACE_FN' int __traceiter_##_name(void *__data, proto); \ ^~~~~ include/linux/tracepoint.h:341:36: note: in expansion of macro 'PARAMS' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/define_trace.h:28:21: note: in expansion of macro 'PARAMS' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ >> include/linux/tracepoint.h:305:6: error: conflicting types for '__traceiter_spe_boost_spe_record' int __traceiter_##_name(void *__data, proto); \ ^~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/linux/tracepoint.h:252:13: note: previous declaration of '__traceiter_spe_boost_spe_record' was here extern int __traceiter_##name(data_proto); \ ^~~~~~~~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:306:41: note: in definition of macro 'DEFINE_TRACE_FN' void __probestub_##_name(void *__data, proto); \ ^~~~~ include/linux/tracepoint.h:341:36: note: in expansion of macro 'PARAMS' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/define_trace.h:28:21: note: in expansion of macro 'PARAMS' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h:439:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:319:40: note: in definition of macro 'DEFINE_TRACE_FN' int __traceiter_##_name(void *__data, proto) \ ^~~~~ include/linux/tracepoint.h:341:36: note: in expansion of macro 'PARAMS' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/define_trace.h:28:21: note: in expansion of macro 'PARAMS' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/linux/tracepoint.h:319:6: error: conflicting types for '__traceiter_spe_boost_spe_record' int __traceiter_##_name(void *__data, proto) \ ^~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/linux/tracepoint.h:252:13: note: previous declaration of '__traceiter_spe_boost_spe_record' was here extern int __traceiter_##name(data_proto); \ ^~~~~~~~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:335:41: note: in definition of macro 'DEFINE_TRACE_FN' void __probestub_##_name(void *__data, proto) \ ^~~~~ include/linux/tracepoint.h:341:36: note: in expansion of macro 'PARAMS' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/define_trace.h:28:21: note: in expansion of macro 'PARAMS' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ >> include/linux/tracepoint.h:335:7: error: conflicting types for '__probestub_spe_boost_spe_record' void __probestub_##_name(void *__data, proto) \ ^~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/linux/tracepoint.h:306:7: note: previous declaration of '__probestub_spe_boost_spe_record' was here void __probestub_##_name(void *__data, proto); \ ^~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ In file included from <command-line>: >> include/linux/static_call_types.h:15:34: error: conflicting types for '__SCT__tp_func_spe_boost_spe_record' #define STATIC_CALL_TRAMP_PREFIX __SCT__ ^~~~~~~ include/linux/compiler_types.h:74:23: note: in definition of macro '___PASTE' #define ___PASTE(a,b) a##b ^ include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~ include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/static_call_types.h:39:22: note: in expansion of macro 'STATIC_CALL_TRAMP' extern typeof(func) STATIC_CALL_TRAMP(name); ^~~~~~~~~~~~~~~~~ include/linux/static_call.h:298:2: note: in expansion of macro 'DECLARE_STATIC_CALL' DECLARE_STATIC_CALL(name, _func); \ ^~~~~~~~~~~~~~~~~~~ include/linux/static_call.h:304:2: note: in expansion of macro '__DEFINE_STATIC_CALL' __DEFINE_STATIC_CALL(name, _func, _func) ^~~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:338:2: note: in expansion of macro 'DEFINE_STATIC_CALL' DEFINE_STATIC_CALL(tp_func_##_name, __traceiter_##_name); ^~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/linux/static_call_types.h:15:34: note: previous declaration of '__SCT__tp_func_spe_boost_spe_record' was here #define STATIC_CALL_TRAMP_PREFIX __SCT__ ^~~~~~~ include/linux/compiler_types.h:74:23: note: in definition of macro '___PASTE' #define ___PASTE(a,b) a##b ^ include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~ include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/static_call_types.h:39:22: note: in expansion of macro 'STATIC_CALL_TRAMP' extern typeof(func) STATIC_CALL_TRAMP(name); ^~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:253:2: note: in expansion of macro 'DECLARE_STATIC_CALL' DECLARE_STATIC_CALL(tp_func_##name, __traceiter_##name); \ ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ In file included from include/trace/define_trace.h:102, from include/trace/events/kmem.h:529, from mm/slab_common.c:35: include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:274:58: note: in definition of macro 'DECLARE_EVENT_CLASS' struct trace_event_data_offsets_##call *__data_offsets, proto) \ ^~~~~ include/trace/trace_events.h:41:9: note: in expansion of macro 'PARAMS' PARAMS(proto), \ ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h:439:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:274:58: note: in definition of macro 'DECLARE_EVENT_CLASS' struct trace_event_data_offsets_##call *__data_offsets, proto) \ ^~~~~ include/trace/trace_events.h:41:9: note: in expansion of macro 'PARAMS' PARAMS(proto), \ ^~~~~~ include/trace/events/kmem.h:438:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(spe_boost_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:439:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ In file included from include/trace/define_trace.h:102, from include/trace/events/kmem.h:529, from mm/slab_common.c:35: include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:399:47: note: in definition of macro '__DECLARE_EVENT_CLASS' do_trace_event_raw_event_##call(void *__data, proto) \ .. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PGP_KEY_PARSER Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] && ASYMMETRIC_PUBLIC_KEY_SUBTYPE [=n] Selected by [y]: - PGP_PRELOAD [=y] && CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] WARNING: unmet direct dependencies detected for HALTPOLL_CPUIDLE Depends on [n]: CPU_IDLE [=n] && ARCH_CPUIDLE_HALTPOLL [=y] && ARCH_HAS_OPTIMIZED_POLL [=y] Selected by [y]: - ARM64 [=y] WARNING: unmet direct dependencies detected for RESCTRL_FS Depends on [n]: MISC_FILESYSTEMS [=n] && ARCH_HAS_CPU_RESCTRL [=y] Selected by [y]: - ARM64_MPAM [=y] vim +/__traceiter_spe_boost_spe_record +441 include/trace/events/kmem.h 437 438 TRACE_EVENT(spe_boost_spe_record, 439 TP_PROTO(struct mem_sampling_record *record), 440 > 441 TP_ARGS(record), 442 443 TP_STRUCT__entry( 444 __field(u64, boost_spe_pa1) 445 __field(u64, boost_spe_pa2) 446 __field(u64, boost_spe_pa3) 447 __field(u64, boost_spe_pa4) 448 __field(u64, boost_spe_pa5) 449 __field(u64, boost_spe_pa6) 450 __field(u64, boost_spe_pa7) 451 __field(u64, boost_spe_pa8) 452 ), 453 454 TP_fast_assign( 455 __entry->boost_spe_pa1 = record->boost_spe_addr[0]; 456 __entry->boost_spe_pa2 = record->boost_spe_addr[1]; 457 __entry->boost_spe_pa3 = record->boost_spe_addr[2]; 458 __entry->boost_spe_pa4 = record->boost_spe_addr[3]; 459 __entry->boost_spe_pa5 = record->boost_spe_addr[4]; 460 __entry->boost_spe_pa6 = record->boost_spe_addr[5]; 461 __entry->boost_spe_pa7 = record->boost_spe_addr[6]; 462 __entry->boost_spe_pa8 = record->boost_spe_addr[7]; 463 ), 464 465 TP_printk("boost_spe_addr[0]=0x%llx boost_spe_addr[1]=0x%llx tlb_addr[2]=0x%llx tlb_addr[3]=0x%llx tlb_addr[4]=0x%llx tlb_addr[5]=0x%llx tlb_addr[6]=0x%llx tlb_addr[7]=0x%llx", 466 __entry->boost_spe_pa1, __entry->boost_spe_pa2, 467 __entry->boost_spe_pa3, __entry->boost_spe_pa4, 468 __entry->boost_spe_pa5, __entry->boost_spe_pa6, 469 __entry->boost_spe_pa7, __entry->boost_spe_pa8) 470 ); 471 #endif /* CONFIG_ARM_SPE_MEM_SAMPLING */ 472 473 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2329/2329] include/trace/events/kmem.h:419:10: error: passing argument 2 of '__traceiter_mm_spe_record' from incompatible pointer type
by kernel test robot 29 May '25

29 May '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 66b0cef2a959be1562a528e3d8cc260dc3803e61 commit: 5c9754d56876f60e199456beda45715da2d1a20b [2329/2329] mm/mem_sampling: Add eBPF interface for memory access tracing config: arm64-randconfig-003-20250529 (https://download.01.org/0day-ci/archive/20250529/202505290104.80vmONol-lkp@…) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250529/202505290104.80vmONol-lkp@…) 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(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505290104.80vmONol-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from include/trace/events/kmem.h:9, from mm/slab_common.c:35: >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:252:32: note: in definition of macro '__DECLARE_TRACE' extern int __traceiter_##name(data_proto); \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:255:34: note: in definition of macro '__DECLARE_TRACE' static inline void trace_##name(proto) \ ^~~~~ include/linux/tracepoint.h:432:24: note: in expansion of macro 'PARAMS' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: In function 'trace_mm_spe_record': >> include/trace/events/kmem.h:419:10: error: passing argument 2 of '__traceiter_mm_spe_record' from incompatible pointer type [-Werror=incompatible-pointer-types] TP_ARGS(record), ^~~~~~ include/linux/tracepoint.h:177:62: note: in definition of macro '__DO_TRACE_CALL' #define __DO_TRACE_CALL(name, args) __traceiter_##name(NULL, args) ^~~~ include/linux/tracepoint.h:217:25: note: in expansion of macro 'TP_ARGS' __DO_TRACE_CALL(name, TP_ARGS(args)); \ ^~~~~~~ include/linux/tracepoint.h:258:4: note: in expansion of macro '__DO_TRACE' __DO_TRACE(name, \ ^~~~~~~~~~ include/linux/tracepoint.h:259:5: note: in expansion of macro 'TP_ARGS' TP_ARGS(args), \ ^~~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:432:39: note: in expansion of macro 'PARAMS' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:37: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:419:2: note: in expansion of macro 'TP_ARGS' TP_ARGS(record), ^~~~~~~ include/trace/events/kmem.h:417:39: note: expected 'struct mem_sampling_record *' but argument is of type 'struct mem_sampling_record *' TP_PROTO(struct mem_sampling_record *record), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ include/linux/tracepoint.h:252:32: note: in definition of macro '__DECLARE_TRACE' extern int __traceiter_##name(data_proto); \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: At top level: >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:229:44: note: in definition of macro '__DECLARE_TRACE_RCU' static inline void trace_##name##_rcuidle(proto) \ ^~~~~ include/linux/tracepoint.h:265:28: note: in expansion of macro 'PARAMS' __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:432:24: note: in expansion of macro 'PARAMS' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: In function 'trace_mm_spe_record_rcuidle': >> include/trace/events/kmem.h:419:10: error: passing argument 2 of '__traceiter_mm_spe_record' from incompatible pointer type [-Werror=incompatible-pointer-types] TP_ARGS(record), ^~~~~~ include/linux/tracepoint.h:177:62: note: in definition of macro '__DO_TRACE_CALL' #define __DO_TRACE_CALL(name, args) __traceiter_##name(NULL, args) ^~~~ include/linux/tracepoint.h:217:25: note: in expansion of macro 'TP_ARGS' __DO_TRACE_CALL(name, TP_ARGS(args)); \ ^~~~~~~ include/linux/tracepoint.h:232:4: note: in expansion of macro '__DO_TRACE' __DO_TRACE(name, \ ^~~~~~~~~~ include/linux/tracepoint.h:233:5: note: in expansion of macro 'TP_ARGS' TP_ARGS(args), \ ^~~~~~~ include/linux/tracepoint.h:265:2: note: in expansion of macro '__DECLARE_TRACE_RCU' __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:265:43: note: in expansion of macro 'PARAMS' __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:432:39: note: in expansion of macro 'PARAMS' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:37: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:419:2: note: in expansion of macro 'TP_ARGS' TP_ARGS(record), ^~~~~~~ include/trace/events/kmem.h:417:39: note: expected 'struct mem_sampling_record *' but argument is of type 'struct mem_sampling_record *' TP_PROTO(struct mem_sampling_record *record), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ include/linux/tracepoint.h:252:32: note: in definition of macro '__DECLARE_TRACE' extern int __traceiter_##name(data_proto); \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: At top level: >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:268:38: note: in definition of macro '__DECLARE_TRACE' register_trace_##name(void (*probe)(data_proto), void *data) \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:274:43: note: in definition of macro '__DECLARE_TRACE' register_trace_prio_##name(void (*probe)(data_proto), void *data,\ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:281:40: note: in definition of macro '__DECLARE_TRACE' unregister_trace_##name(void (*probe)(data_proto), void *data) \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:287:46: note: in definition of macro '__DECLARE_TRACE' check_trace_callback_type_##name(void (*cb)(data_proto)) \ ^~~~~~~~~~ include/linux/tracepoint.h:434:4: note: in expansion of macro 'PARAMS' PARAMS(void *__data, proto)) ^~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:566:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:305:40: note: in definition of macro 'DEFINE_TRACE_FN' int __traceiter_##_name(void *__data, proto); \ ^~~~~ include/linux/tracepoint.h:341:36: note: in expansion of macro 'PARAMS' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/define_trace.h:28:21: note: in expansion of macro 'PARAMS' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ >> include/linux/tracepoint.h:305:6: error: conflicting types for '__traceiter_mm_spe_record' int __traceiter_##_name(void *__data, proto); \ ^~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/linux/tracepoint.h:252:13: note: previous declaration of '__traceiter_mm_spe_record' was here extern int __traceiter_##name(data_proto); \ ^~~~~~~~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:306:41: note: in definition of macro 'DEFINE_TRACE_FN' void __probestub_##_name(void *__data, proto); \ ^~~~~ include/linux/tracepoint.h:341:36: note: in expansion of macro 'PARAMS' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/define_trace.h:28:21: note: in expansion of macro 'PARAMS' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:319:40: note: in definition of macro 'DEFINE_TRACE_FN' int __traceiter_##_name(void *__data, proto) \ ^~~~~ include/linux/tracepoint.h:341:36: note: in expansion of macro 'PARAMS' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/define_trace.h:28:21: note: in expansion of macro 'PARAMS' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/linux/tracepoint.h:319:6: error: conflicting types for '__traceiter_mm_spe_record' int __traceiter_##_name(void *__data, proto) \ ^~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/linux/tracepoint.h:252:13: note: previous declaration of '__traceiter_mm_spe_record' was here extern int __traceiter_##name(data_proto); \ ^~~~~~~~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:335:41: note: in definition of macro 'DEFINE_TRACE_FN' void __probestub_##_name(void *__data, proto) \ ^~~~~ include/linux/tracepoint.h:341:36: note: in expansion of macro 'PARAMS' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/define_trace.h:28:21: note: in expansion of macro 'PARAMS' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ >> include/linux/tracepoint.h:335:7: error: conflicting types for '__probestub_mm_spe_record' void __probestub_##_name(void *__data, proto) \ ^~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/linux/tracepoint.h:306:7: note: previous declaration of '__probestub_mm_spe_record' was here void __probestub_##_name(void *__data, proto); \ ^~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ In file included from <command-line>: >> include/linux/static_call_types.h:15:34: error: conflicting types for '__SCT__tp_func_mm_spe_record' #define STATIC_CALL_TRAMP_PREFIX __SCT__ ^~~~~~~ include/linux/compiler_types.h:74:23: note: in definition of macro '___PASTE' #define ___PASTE(a,b) a##b ^ include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~ include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/static_call_types.h:39:22: note: in expansion of macro 'STATIC_CALL_TRAMP' extern typeof(func) STATIC_CALL_TRAMP(name); ^~~~~~~~~~~~~~~~~ include/linux/static_call.h:298:2: note: in expansion of macro 'DECLARE_STATIC_CALL' DECLARE_STATIC_CALL(name, _func); \ ^~~~~~~~~~~~~~~~~~~ include/linux/static_call.h:304:2: note: in expansion of macro '__DEFINE_STATIC_CALL' __DEFINE_STATIC_CALL(name, _func, _func) ^~~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:338:2: note: in expansion of macro 'DEFINE_STATIC_CALL' DEFINE_STATIC_CALL(tp_func_##_name, __traceiter_##_name); ^~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:341:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:28:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/linux/static_call_types.h:15:34: note: previous declaration of '__SCT__tp_func_mm_spe_record' was here #define STATIC_CALL_TRAMP_PREFIX __SCT__ ^~~~~~~ include/linux/compiler_types.h:74:23: note: in definition of macro '___PASTE' #define ___PASTE(a,b) a##b ^ include/linux/static_call_types.h:18:34: note: in expansion of macro '__PASTE' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~ include/linux/static_call_types.h:18:42: note: in expansion of macro 'STATIC_CALL_TRAMP_PREFIX' #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/static_call_types.h:39:22: note: in expansion of macro 'STATIC_CALL_TRAMP' extern typeof(func) STATIC_CALL_TRAMP(name); ^~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:253:2: note: in expansion of macro 'DECLARE_STATIC_CALL' DECLARE_STATIC_CALL(tp_func_##name, __traceiter_##name); \ ^~~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ In file included from include/trace/define_trace.h:102, from include/trace/events/kmem.h:441, from mm/slab_common.c:35: >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:274:58: note: in definition of macro 'DECLARE_EVENT_CLASS' struct trace_event_data_offsets_##call *__data_offsets, proto) \ ^~~~~ include/trace/trace_events.h:41:9: note: in expansion of macro 'PARAMS' PARAMS(proto), \ ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ In file included from include/trace/define_trace.h:102, from include/trace/events/kmem.h:441, from mm/slab_common.c:35: >> include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:399:47: note: in definition of macro '__DECLARE_EVENT_CLASS' do_trace_event_raw_event_##call(void *__data, proto) \ ^~~~~ include/trace/trace_events.h:427:29: note: in expansion of macro 'PARAMS' __DECLARE_EVENT_CLASS(call, PARAMS(proto), PARAMS(args), PARAMS(tstruct), \ ^~~~~~ include/trace/trace_events.h:40:2: note: in expansion of macro 'DECLARE_EVENT_CLASS' DECLARE_EVENT_CLASS(name, \ ^~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:41:9: note: in expansion of macro 'PARAMS' PARAMS(proto), \ ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: In function 'do_trace_event_raw_event_mm_spe_record': >> include/trace/events/kmem.h:419:10: error: passing argument 2 of 'trace_event_get_offsets_mm_spe_record' from incompatible pointer type [-Werror=incompatible-pointer-types] TP_ARGS(record), ^~~~~~ include/trace/trace_events.h:410:64: note: in definition of macro '__DECLARE_EVENT_CLASS' __data_size = trace_event_get_offsets_##call(&__data_offsets, args); \ ^~~~ include/trace/trace_events.h:427:44: note: in expansion of macro 'PARAMS' __DECLARE_EVENT_CLASS(call, PARAMS(proto), PARAMS(args), PARAMS(tstruct), \ ^~~~~~ include/trace/trace_events.h:40:2: note: in expansion of macro 'DECLARE_EVENT_CLASS' DECLARE_EVENT_CLASS(name, \ ^~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:42:9: note: in expansion of macro 'PARAMS' PARAMS(args), \ ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:419:2: note: in expansion of macro 'TP_ARGS' TP_ARGS(record), ^~~~~~~ In file included from include/trace/define_trace.h:102, from include/trace/events/kmem.h:441, from mm/slab_common.c:35: include/trace/events/kmem.h:417:39: note: expected 'struct mem_sampling_record *' but argument is of type 'struct mem_sampling_record *' TP_PROTO(struct mem_sampling_record *record), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ include/trace/trace_events.h:274:58: note: in definition of macro 'DECLARE_EVENT_CLASS' struct trace_event_data_offsets_##call *__data_offsets, proto) \ ^~~~~ include/trace/trace_events.h:41:9: note: in expansion of macro 'PARAMS' PARAMS(proto), \ ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ In file included from include/trace/define_trace.h:102, from include/trace/events/kmem.h:441, from mm/slab_common.c:35: >> include/trace/events/kmem.h:428:26: error: dereferencing pointer to incomplete type 'struct mem_sampling_record' __entry->vaddr = record->virt_addr; ^~ include/trace/trace_events.h:420:4: note: in definition of macro '__DECLARE_EVENT_CLASS' { assign; } \ ^~~~~~ include/trace/trace_events.h:428:9: note: in expansion of macro 'PARAMS' PARAMS(assign), PARAMS(print)) \ ^~~~~~ include/trace/trace_events.h:40:2: note: in expansion of macro 'DECLARE_EVENT_CLASS' DECLARE_EVENT_CLASS(name, \ ^~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:44:9: note: in expansion of macro 'PARAMS' PARAMS(assign), \ ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:427:2: note: in expansion of macro 'TP_fast_assign' TP_fast_assign( ^~~~~~~~~~~~~~ include/trace/events/kmem.h: At top level: include/trace/events/kmem.h:417:18: warning: 'struct mem_sampling_record' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:430:44: note: in definition of macro 'DECLARE_EVENT_CLASS' trace_event_raw_event_##call(void *__data, proto) \ ^~~~~ include/trace/trace_events.h:41:9: note: in expansion of macro 'PARAMS' PARAMS(proto), \ ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: In function 'trace_event_raw_event_mm_spe_record': include/trace/events/kmem.h:419:10: error: passing argument 2 of 'do_trace_event_raw_event_mm_spe_record' from incompatible pointer type [-Werror=incompatible-pointer-types] TP_ARGS(record), ^~~~~~ include/trace/trace_events.h:432:42: note: in definition of macro 'DECLARE_EVENT_CLASS' do_trace_event_raw_event_##call(__data, args); \ ^~~~ include/trace/trace_events.h:42:9: note: in expansion of macro 'PARAMS' PARAMS(args), \ ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:419:2: note: in expansion of macro 'TP_ARGS' TP_ARGS(record), ^~~~~~~ include/trace/events/kmem.h:417:39: note: expected 'struct mem_sampling_record *' but argument is of type 'struct mem_sampling_record *' TP_PROTO(struct mem_sampling_record *record), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ include/trace/trace_events.h:399:47: note: in definition of macro '__DECLARE_EVENT_CLASS' do_trace_event_raw_event_##call(void *__data, proto) \ ^~~~~ include/trace/trace_events.h:427:29: note: in expansion of macro 'PARAMS' __DECLARE_EVENT_CLASS(call, PARAMS(proto), PARAMS(args), PARAMS(tstruct), \ ^~~~~~ include/trace/trace_events.h:40:2: note: in expansion of macro 'DECLARE_EVENT_CLASS' DECLARE_EVENT_CLASS(name, \ ^~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:41:9: note: in expansion of macro 'PARAMS' PARAMS(proto), \ ^~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ include/trace/events/kmem.h:417:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct mem_sampling_record *record), ^~~~~~~~ include/trace/events/kmem.h: In function 'ftrace_test_probe_mm_spe_record': include/trace/trace_events.h:457:35: error: passing argument 1 of 'check_trace_callback_type_mm_spe_record' from incompatible pointer type [-Werror=incompatible-pointer-types] check_trace_callback_type_##call(trace_event_raw_event_##template); \ ^~~~~~~~~~~~~~~~~~~~~~ include/trace/trace_events.h:46:2: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ In file included from include/trace/events/kmem.h:9, from mm/slab_common.c:35: include/linux/tracepoint.h:287:42: note: expected 'void (*)(void *, struct mem_sampling_record *)' but argument is of type 'void (*)(void *, struct mem_sampling_record *)' check_trace_callback_type_##name(void (*cb)(data_proto)) \ ~~~~~~~^~~~~~~~~~~~~~~ include/linux/tracepoint.h:432:2: note: in expansion of macro '__DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:566:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/trace/events/kmem.h:416:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_spe_record, ^~~~~~~~~~~ In file included from include/trace/define_trace.h:102, from include/trace/events/kmem.h:441, from mm/slab_common.c:35: .. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PGP_KEY_PARSER Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] && ASYMMETRIC_PUBLIC_KEY_SUBTYPE [=n] Selected by [y]: - PGP_PRELOAD [=y] && CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] WARNING: unmet direct dependencies detected for HALTPOLL_CPUIDLE Depends on [n]: CPU_IDLE [=n] && ARCH_CPUIDLE_HALTPOLL [=y] && ARCH_HAS_OPTIMIZED_POLL [=y] Selected by [y]: - ARM64 [=y] WARNING: unmet direct dependencies detected for RESCTRL_FS Depends on [n]: MISC_FILESYSTEMS [=n] && ARCH_HAS_CPU_RESCTRL [=y] Selected by [y]: - ARM64_MPAM [=y] vim +/__traceiter_mm_spe_record +419 include/trace/events/kmem.h 388 389 TP_PROTO(struct mm_struct *mm, 390 int member), 391 392 TP_ARGS(mm, member), 393 394 TP_STRUCT__entry( 395 __field(unsigned int, mm_id) 396 __field(unsigned int, curr) 397 __field(int, member) 398 __field(long, size) 399 ), 400 401 TP_fast_assign( 402 __entry->mm_id = mm_ptr_to_hash(mm); 403 __entry->curr = !!(current->mm == mm); 404 __entry->member = member; 405 __entry->size = (mm_counter_sum_positive(mm, member) 406 << PAGE_SHIFT); 407 ), 408 409 TP_printk("mm_id=%u curr=%d type=%s size=%ldB", 410 __entry->mm_id, 411 __entry->curr, 412 __print_symbolic(__entry->member, TRACE_MM_PAGES), 413 __entry->size) 414 ); 415 #ifdef CONFIG_ARM_SPE_MEM_SAMPLING 416 TRACE_EVENT(mm_spe_record, > 417 TP_PROTO(struct mem_sampling_record *record), 418 > 419 TP_ARGS(record), 420 421 TP_STRUCT__entry( 422 __field(u64, vaddr) 423 __field(u64, paddr) 424 __field(int, pid) 425 ), 426 427 TP_fast_assign( > 428 __entry->vaddr = record->virt_addr; 429 __entry->paddr = record->phys_addr; 430 __entry->pid = record->context_id; 431 432 ), 433 434 TP_printk("vaddr=%llu paddr=%llu pid=%d", 435 __entry->vaddr, __entry->paddr, __entry->pid) 436 ); 437 #endif /* CONFIG_ARM_SPE_MEM_SAMPLING */ 438 #endif /* _TRACE_KMEM_H */ 439 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2329/2329] arch/arm64/kvm/virtcca_cvm.c:810:5: warning: no previous prototype for 'virtcca_get_tmi_version'
by kernel test robot 29 May '25

29 May '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 66b0cef2a959be1562a528e3d8cc260dc3803e61 commit: 86b9cab8c4752eb46e3ec038325aee5686805c69 [2329/2329] VirtCCA: an interface to retrieve the TMI version is added config: arm64-randconfig-004-20250529 (https://download.01.org/0day-ci/archive/20250529/202505290152.me3JXaGE-lkp@…) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250529/202505290152.me3JXaGE-lkp@…) 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(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505290152.me3JXaGE-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/arm64/kvm/virtcca_cvm.c:810:5: warning: no previous prototype for 'virtcca_get_tmi_version' [-Wmissing-prototypes] u64 virtcca_get_tmi_version(void) ^~~~~~~~~~~~~~~~~~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for HALTPOLL_CPUIDLE Depends on [n]: CPU_IDLE [=n] && ARCH_CPUIDLE_HALTPOLL [=y] && ARCH_HAS_OPTIMIZED_POLL [=y] Selected by [y]: - ARM64 [=y] WARNING: unmet direct dependencies detected for RESCTRL_FS Depends on [n]: MISC_FILESYSTEMS [=n] && ARCH_HAS_CPU_RESCTRL [=y] Selected by [y]: - ARM64_MPAM [=y] vim +/virtcca_get_tmi_version +810 arch/arm64/kvm/virtcca_cvm.c 809 > 810 u64 virtcca_get_tmi_version(void) 811 { 812 u64 res = tmi_version(); 813 814 if (res == SMCCC_RET_NOT_SUPPORTED) 815 return 0; 816 return res; 817 } 818 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1592/1592] ld.lld: error: undefined symbol: init_net
by kernel test robot 29 May '25

29 May '25
Hi Zhao, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5ae76523ccf96ec8b8d73d541e305bf15b6b697e commit: 6636f4434a9c5c9c645694db206188ee5a6626dd [1592/1592] ext4: report error to userspace by netlink config: x86_64-buildonly-randconfig-002-20250424 (https://download.01.org/0day-ci/archive/20250529/202505290015.YgAGQH9n-lkp@…) compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250529/202505290015.YgAGQH9n-lkp@…) 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(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505290015.YgAGQH9n-lkp@intel.com/ All errors (new ones prefixed by >>): >> ld.lld: error: undefined symbol: init_net >>> referenced by super.c >>> fs/ext4/super.o:(ext4_init_fs) in archive built-in.a -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2329/2329] security/integrity/ima/ima_virtcca.c:30:5: warning: no previous prototype for 'ima_virtcca_init'
by kernel test robot 28 May '25

28 May '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: ecedb4219f373697a260948e7bfe781c40318682 commit: 24ac42fb86c6acfcb89b76d3b2fd6fba9bfd89de [2329/2329] ima: rot: Adapt VirtCCA into Rot config: arm64-randconfig-003-20250529 (https://download.01.org/0day-ci/archive/20250528/202505282351.rMVzfHVV-lkp@…) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250528/202505282351.rMVzfHVV-lkp@…) 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(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505282351.rMVzfHVV-lkp@intel.com/ All warnings (new ones prefixed by >>): >> security/integrity/ima/ima_virtcca.c:30:5: warning: no previous prototype for 'ima_virtcca_init' [-Wmissing-prototypes] int ima_virtcca_init(struct ima_rot *rot) ^~~~~~~~~~~~~~~~ >> security/integrity/ima/ima_virtcca.c:59:5: warning: no previous prototype for 'ima_calc_virtcca_boot_aggregate' [-Wmissing-prototypes] int ima_calc_virtcca_boot_aggregate(struct ima_digest_data *hash) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> security/integrity/ima/ima_virtcca.c:81:5: warning: no previous prototype for 'ima_virtcca_extend' [-Wmissing-prototypes] int ima_virtcca_extend(struct tpm_digest *digests_arg, const void *args) ^~~~~~~~~~~~~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PGP_KEY_PARSER Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] && ASYMMETRIC_PUBLIC_KEY_SUBTYPE [=n] Selected by [y]: - PGP_PRELOAD [=y] && CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] WARNING: unmet direct dependencies detected for RESCTRL_FS Depends on [n]: MISC_FILESYSTEMS [=n] && ARCH_HAS_CPU_RESCTRL [=y] Selected by [y]: - ARM64_MPAM [=y] vim +/ima_virtcca_init +30 security/integrity/ima/ima_virtcca.c 29 > 30 int ima_virtcca_init(struct ima_rot *rot) 31 { 32 int rc; 33 34 if (!is_virtcca_cvm_world() || tsi_get_version() == SMCCC_RET_NOT_SUPPORTED) 35 return -ENODEV; 36 37 rc = ima_virtcca_init_algo(); 38 if (rc) 39 return rc; 40 41 if (virtcca_algo != ima_hash_algo) { 42 pr_info("VirtCCA's algo (%s) is different from ima_hash_algo (%s)\n", 43 hash_algo_name[virtcca_algo], hash_algo_name[ima_hash_algo]); 44 45 rot->allocated_banks = kcalloc(1, sizeof(*rot->allocated_banks), GFP_KERNEL); 46 if (!rot->allocated_banks) 47 return -ENOMEM; 48 49 rot->nr_allocated_banks = 1; 50 rot->allocated_banks[0].alg_id = (virtcca_algo == HASH_ALGO_SHA512) ? 51 TPM_ALG_SHA512 : TPM_ALG_SHA256; 52 rot->allocated_banks[0].digest_size = hash_digest_size[virtcca_algo]; 53 rot->allocated_banks[0].crypto_id = virtcca_algo; 54 } 55 56 return 0; 57 } 58 > 59 int ima_calc_virtcca_boot_aggregate(struct ima_digest_data *hash) 60 { 61 unsigned long result; 62 struct virtcca_cvm_measurement cm = { 0 }; 63 64 hash->algo = virtcca_algo; 65 hash->length = hash_digest_size[virtcca_algo]; 66 67 /* Read the measurement result of RIM as the boot aggregate */ 68 cm.index = RIM_MEASUREMENT_SLOT; 69 70 result = tsi_measurement_read(&cm); 71 if (result != TSI_SUCCESS) { 72 pr_err("Error reading cvm measurement 0 for boot aggregate\n"); 73 return -EFAULT; 74 } 75 76 memcpy(hash->digest, cm.value, hash->length); 77 78 return 0; 79 } 80 > 81 int ima_virtcca_extend(struct tpm_digest *digests_arg, const void *args) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2329/2329] include/linux/compiler.h:215:46: error: initializer element is not constant
by kernel test robot 28 May '25

28 May '25
Hi Lu, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 66b0cef2a959be1562a528e3d8cc260dc3803e61 commit: 654944510822988390470cbc5b6f914c19dd9b88 [2329/2329] sched/psi: add cpu fine grained stall tracking in pressure.stat config: arm64-randconfig-004-20250529 (https://download.01.org/0day-ci/archive/20250528/202505282313.Lw9dIqW7-lkp@…) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250528/202505282313.Lw9dIqW7-lkp@…) 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(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505282313.Lw9dIqW7-lkp@intel.com/ All errors (new ones prefixed by >>): ^~~~~~~~~~~~~~~ kernel/sched/psi.c:1870:15: error: initializer element is not constant .proc_open = psi_io_open, ^~~~~~~~~~~ kernel/sched/psi.c:1870:15: note: (near initialization for 'psi_io_proc_ops.proc_open') kernel/sched/psi.c:1873:16: error: initializer element is not constant .proc_write = psi_io_write, ^~~~~~~~~~~~ kernel/sched/psi.c:1873:16: note: (near initialization for 'psi_io_proc_ops.proc_write') kernel/sched/psi.c:1874:15: error: initializer element is not constant .proc_poll = psi_fop_poll, ^~~~~~~~~~~~ kernel/sched/psi.c:1874:15: note: (near initialization for 'psi_io_proc_ops.proc_poll') kernel/sched/psi.c:1875:18: error: initializer element is not constant .proc_release = psi_fop_release, ^~~~~~~~~~~~~~~ kernel/sched/psi.c:1875:18: note: (near initialization for 'psi_io_proc_ops.proc_release') kernel/sched/psi.c:1879:15: error: initializer element is not constant .proc_open = psi_memory_open, ^~~~~~~~~~~~~~~ kernel/sched/psi.c:1879:15: note: (near initialization for 'psi_memory_proc_ops.proc_open') kernel/sched/psi.c:1882:16: error: initializer element is not constant .proc_write = psi_memory_write, ^~~~~~~~~~~~~~~~ kernel/sched/psi.c:1882:16: note: (near initialization for 'psi_memory_proc_ops.proc_write') kernel/sched/psi.c:1883:15: error: initializer element is not constant .proc_poll = psi_fop_poll, ^~~~~~~~~~~~ kernel/sched/psi.c:1883:15: note: (near initialization for 'psi_memory_proc_ops.proc_poll') kernel/sched/psi.c:1884:18: error: initializer element is not constant .proc_release = psi_fop_release, ^~~~~~~~~~~~~~~ kernel/sched/psi.c:1884:18: note: (near initialization for 'psi_memory_proc_ops.proc_release') kernel/sched/psi.c:1888:15: error: initializer element is not constant .proc_open = psi_cpu_open, ^~~~~~~~~~~~ kernel/sched/psi.c:1888:15: note: (near initialization for 'psi_cpu_proc_ops.proc_open') kernel/sched/psi.c:1891:16: error: initializer element is not constant .proc_write = psi_cpu_write, ^~~~~~~~~~~~~ kernel/sched/psi.c:1891:16: note: (near initialization for 'psi_cpu_proc_ops.proc_write') kernel/sched/psi.c:1892:15: error: initializer element is not constant .proc_poll = psi_fop_poll, ^~~~~~~~~~~~ kernel/sched/psi.c:1892:15: note: (near initialization for 'psi_cpu_proc_ops.proc_poll') kernel/sched/psi.c:1893:18: error: initializer element is not constant .proc_release = psi_fop_release, ^~~~~~~~~~~~~~~ kernel/sched/psi.c:1893:18: note: (near initialization for 'psi_cpu_proc_ops.proc_release') kernel/sched/psi.c:1907:13: error: invalid storage class for function 'get_stat_names' static void get_stat_names(struct seq_file *m, int i, bool is_full) ^~~~~~~~~~~~~~ kernel/sched/psi.c:1953:12: error: invalid storage class for function 'system_psi_stat_show' static int system_psi_stat_show(struct seq_file *m, void *v) ^~~~~~~~~~~~~~~~~~~~ kernel/sched/psi.c:1958:12: error: invalid storage class for function 'psi_stat_open' static int psi_stat_open(struct inode *inode, struct file *file) ^~~~~~~~~~~~~ kernel/sched/psi.c:1964:15: error: initializer element is not constant .proc_open = psi_stat_open, ^~~~~~~~~~~~~ kernel/sched/psi.c:1964:15: note: (near initialization for 'psi_stat_proc_ops.proc_open') kernel/sched/psi.c:1967:18: error: initializer element is not constant .proc_release = psi_fop_release, ^~~~~~~~~~~~~~~ kernel/sched/psi.c:1967:18: note: (near initialization for 'psi_stat_proc_ops.proc_release') kernel/sched/psi.c:1972:12: error: invalid storage class for function 'psi_irq_show' static int psi_irq_show(struct seq_file *m, void *v) ^~~~~~~~~~~~ kernel/sched/psi.c:1977:12: error: invalid storage class for function 'psi_irq_open' static int psi_irq_open(struct inode *inode, struct file *file) ^~~~~~~~~~~~ kernel/sched/psi.c:1982:16: error: invalid storage class for function 'psi_irq_write' static ssize_t psi_irq_write(struct file *file, const char __user *user_buf, ^~~~~~~~~~~~~ kernel/sched/psi.c:1989:15: error: initializer element is not constant .proc_open = psi_irq_open, ^~~~~~~~~~~~ kernel/sched/psi.c:1989:15: note: (near initialization for 'psi_irq_proc_ops.proc_open') kernel/sched/psi.c:1992:16: error: initializer element is not constant .proc_write = psi_irq_write, ^~~~~~~~~~~~~ kernel/sched/psi.c:1992:16: note: (near initialization for 'psi_irq_proc_ops.proc_write') kernel/sched/psi.c:1993:15: error: initializer element is not constant .proc_poll = psi_fop_poll, ^~~~~~~~~~~~ kernel/sched/psi.c:1993:15: note: (near initialization for 'psi_irq_proc_ops.proc_poll') kernel/sched/psi.c:1994:18: error: initializer element is not constant .proc_release = psi_fop_release, ^~~~~~~~~~~~~~~ kernel/sched/psi.c:1994:18: note: (near initialization for 'psi_irq_proc_ops.proc_release') kernel/sched/psi.c:1998:19: error: invalid storage class for function 'psi_proc_init' static int __init psi_proc_init(void) ^~~~~~~~~~~~~ In file included from include/linux/build_bug.h:5, from include/linux/container_of.h:5, from include/linux/list.h:5, from include/linux/smp.h:12, from include/linux/sched/clock.h:5, from kernel/sched/build_utility.c:12: >> include/linux/compiler.h:215:46: error: initializer element is not constant __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym; ^ include/linux/compiler.h:217:2: note: in expansion of macro '___ADDRESSABLE' ___ADDRESSABLE(sym, __section(".discard.addressable")) ^~~~~~~~~~~~~~ include/linux/init.h:256:2: note: in expansion of macro '__ADDRESSABLE' __ADDRESSABLE(fn) ^~~~~~~~~~~~~ include/linux/init.h:261:2: note: in expansion of macro '__define_initcall_stub' __define_initcall_stub(__stub, fn) \ ^~~~~~~~~~~~~~~~~~~~~~ include/linux/init.h:274:2: note: in expansion of macro '____define_initcall' ____define_initcall(fn, \ ^~~~~~~~~~~~~~~~~~~ include/linux/init.h:280:2: note: in expansion of macro '__unique_initcall' __unique_initcall(fn, id, __sec, __initcall_id(fn)) ^~~~~~~~~~~~~~~~~ include/linux/init.h:282:35: note: in expansion of macro '___define_initcall' #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) ^~~~~~~~~~~~~~~~~~ include/linux/init.h:311:30: note: in expansion of macro '__define_initcall' #define device_initcall(fn) __define_initcall(fn, 6) ^~~~~~~~~~~~~~~~~ include/linux/init.h:316:24: note: in expansion of macro 'device_initcall' #define __initcall(fn) device_initcall(fn) ^~~~~~~~~~~~~~~ include/linux/module.h:88:24: note: in expansion of macro '__initcall' #define module_init(x) __initcall(x); ^~~~~~~~~~ kernel/sched/psi.c:2014:1: note: in expansion of macro 'module_init' module_init(psi_proc_init); ^~~~~~~~~~~ In file included from kernel/sched/build_utility.c:101: kernel/sched/membarrier.c:165:13: error: invalid storage class for function 'ipi_mb' static void ipi_mb(void *info) ^~~~~~ kernel/sched/membarrier.c:170:13: error: invalid storage class for function 'ipi_sync_core' static void ipi_sync_core(void *info) ^~~~~~~~~~~~~ kernel/sched/membarrier.c:187:13: error: invalid storage class for function 'ipi_rseq' static void ipi_rseq(void *info) ^~~~~~~~ kernel/sched/membarrier.c:200:13: error: invalid storage class for function 'ipi_sync_rq_state' static void ipi_sync_rq_state(void *info) ^~~~~~~~~~~~~~~~~ kernel/sched/membarrier.c:245:12: error: invalid storage class for function 'membarrier_global_expedited' static int membarrier_global_expedited(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/membarrier.c:310:12: error: invalid storage class for function 'membarrier_private_expedited' static int membarrier_private_expedited(int flags, int cpu_id) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/membarrier.c:426:12: error: invalid storage class for function 'sync_runqueues_membarrier_state' static int sync_runqueues_membarrier_state(struct mm_struct *mm) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/membarrier.c:483:12: error: invalid storage class for function 'membarrier_register_global_expedited' static int membarrier_register_global_expedited(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/membarrier.c:502:12: error: invalid storage class for function 'membarrier_register_private_expedited' static int membarrier_register_private_expedited(int flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/membarrier.c:544:12: error: invalid storage class for function 'membarrier_get_registrations' static int membarrier_get_registrations(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/syscalls_api.h:1, from kernel/sched/sched.h:61, from kernel/sched/build_utility.c:53: >> include/linux/syscalls.h:157:33: error: redeclaration of '__syscall_meta__membarrier' with no linkage static struct syscall_metadata __syscall_meta_##sname; \ ^~~~~~~~~~~~~~~ include/linux/syscalls.h:180:2: note: in expansion of macro 'SYSCALL_TRACE_EXIT_EVENT' SYSCALL_TRACE_EXIT_EVENT(sname); \ ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:229:2: note: in expansion of macro 'SYSCALL_METADATA' SYSCALL_METADATA(sname, x, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~ include/linux/syscalls.h:221:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ kernel/sched/membarrier.c:614:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) ^~~~~~~~~~~~~~~ include/linux/syscalls.h:141:33: note: previous declaration of '__syscall_meta__membarrier' was here static struct syscall_metadata __syscall_meta_##sname; \ ^~~~~~~~~~~~~~~ include/linux/syscalls.h:179:2: note: in expansion of macro 'SYSCALL_TRACE_ENTER_EVENT' SYSCALL_TRACE_ENTER_EVENT(sname); \ ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:229:2: note: in expansion of macro 'SYSCALL_METADATA' SYSCALL_METADATA(sname, x, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~ include/linux/syscalls.h:221:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ kernel/sched/membarrier.c:614:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) ^~~~~~~~~~~~~~~ include/linux/syscalls.h:182:4: error: redeclaration of '__syscall_meta__membarrier' with no linkage __syscall_meta_##sname = { \ ^~~~~~~~~~~~~~~ include/linux/syscalls.h:229:2: note: in expansion of macro 'SYSCALL_METADATA' SYSCALL_METADATA(sname, x, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~ include/linux/syscalls.h:221:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ kernel/sched/membarrier.c:614:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) ^~~~~~~~~~~~~~~ include/linux/syscalls.h:157:33: note: previous declaration of '__syscall_meta__membarrier' was here static struct syscall_metadata __syscall_meta_##sname; \ ^~~~~~~~~~~~~~~ include/linux/syscalls.h:180:2: note: in expansion of macro 'SYSCALL_TRACE_EXIT_EVENT' SYSCALL_TRACE_EXIT_EVENT(sname); \ ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/syscalls.h:229:2: note: in expansion of macro 'SYSCALL_METADATA' SYSCALL_METADATA(sname, x, __VA_ARGS__) \ ^~~~~~~~~~~~~~~~ include/linux/syscalls.h:221:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ kernel/sched/membarrier.c:614:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) ^~~~~~~~~~~~~~~ In file included from include/linux/compat.h:34, from arch/arm64/include/asm/elf.h:9, from include/linux/elf.h:6, from include/linux/module.h:19, from include/linux/device/driver.h:21, from include/linux/device.h:32, from include/linux/node.h:18, from include/linux/cpu.h:17, from include/linux/cpufreq.h:12, from kernel/sched/build_utility.c:22: arch/arm64/include/asm/syscall_wrapper.h:55:14: error: invalid storage class for function '__se_sys_membarrier' static long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \ ^~~~~~~~ include/linux/syscalls.h:230:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:221:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ kernel/sched/membarrier.c:614:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) ^~~~~~~~~~~~~~~ arch/arm64/include/asm/syscall_wrapper.h:56:21: error: invalid storage class for function '__do_sys_membarrier' static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)); \ ^~~~~~~~ include/linux/syscalls.h:230:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:221:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ kernel/sched/membarrier.c:614:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) ^~~~~~~~~~~~~~~ arch/arm64/include/asm/syscall_wrapper.h:58:18: error: static declaration of '__arm64_sys_membarrier' follows non-static declaration asmlinkage long __arm64_sys##name(const struct pt_regs *regs) \ ^~~~~~~~~~~ include/linux/syscalls.h:230:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ include/linux/syscalls.h:221:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ kernel/sched/membarrier.c:614:1: note: in expansion of macro 'SYSCALL_DEFINE3' vim +215 include/linux/compiler.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 206 7290d58095712a Ard Biesheuvel 2018-08-21 207 /* 7290d58095712a Ard Biesheuvel 2018-08-21 208 * Force the compiler to emit 'sym' as a symbol, so that we can reference 7290d58095712a Ard Biesheuvel 2018-08-21 209 * it from inline assembler. Necessary in case 'sym' could be inlined 7290d58095712a Ard Biesheuvel 2018-08-21 210 * otherwise, or eliminated entirely due to lack of references that are 7290d58095712a Ard Biesheuvel 2018-08-21 211 * visible to the compiler. 7290d58095712a Ard Biesheuvel 2018-08-21 212 */ 92efda8eb15295 Sami Tolvanen 2022-09-08 213 #define ___ADDRESSABLE(sym, __attrs) \ 92efda8eb15295 Sami Tolvanen 2022-09-08 214 static void * __used __attrs \ 563a02b0c9704f Josh Poimboeuf 2020-08-18 @215 __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym; 92efda8eb15295 Sami Tolvanen 2022-09-08 216 #define __ADDRESSABLE(sym) \ 92efda8eb15295 Sami Tolvanen 2022-09-08 217 ___ADDRESSABLE(sym, __section(".discard.addressable")) 7290d58095712a Ard Biesheuvel 2018-08-21 218 :::::: The code at line 215 was first introduced by commit :::::: 563a02b0c9704f69c0364befedd451f57fe88092 compiler.h: Make __ADDRESSABLE() symbol truly unique :::::: TO: Josh Poimboeuf <jpoimboe(a)redhat.com> :::::: CC: Ingo Molnar <mingo(a)kernel.org> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1365/1365] drivers/acpi/cppc_acpi.c:614:3-8: WARNING: NULL check before some freeing functions is not needed.
by kernel test robot 28 May '25

28 May '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5ae76523ccf96ec8b8d73d541e305bf15b6b697e commit: b8815fbbe89b0d15fa3296c3e57d2197a92f5bc0 [1365/1365] ACPI: CPPC: Fix cppc_cpufreq_init failed in CPU Hotplug situation config: x86_64-randconfig-102-20250103 (https://download.01.org/0day-ci/archive/20250528/202505282104.4h1iEHGb-lkp@…) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) 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(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505282104.4h1iEHGb-lkp@intel.com/ cocci warnings: (new ones prefixed by >>) >> drivers/acpi/cppc_acpi.c:614:3-8: WARNING: NULL check before some freeing functions is not needed. vim +614 drivers/acpi/cppc_acpi.c 576 577 int acpi_get_psd_map(struct cppc_cpudata **all_cpu_data) 578 { 579 struct cpc_desc **cpc_pptr, *cpc_ptr; 580 int parsed_core_num = 0; 581 int i, ret; 582 583 cpc_pptr = kcalloc(num_possible_cpus(), sizeof(void *), GFP_KERNEL); 584 if (!cpc_pptr) 585 return -ENOMEM; 586 for_each_possible_cpu(i) { 587 cpc_pptr[i] = kzalloc(sizeof(struct cpc_desc), GFP_KERNEL); 588 if (!cpc_pptr[i]) { 589 ret = -ENOMEM; 590 goto out; 591 } 592 } 593 594 /* 595 * We can not use acpi_get_devices() to walk the processor devices 596 * because some processor device is not present. 597 */ 598 ret = acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, 599 ACPI_UINT32_MAX, acpi_parse_cpc, NULL, 600 cpc_pptr, (void **)&parsed_core_num); 601 if (ret) 602 goto out; 603 if (parsed_core_num != num_possible_cpus()) { 604 ret = -EINVAL; 605 goto out; 606 } 607 608 ret = __acpi_get_psd_map(all_cpu_data, cpc_pptr); 609 610 out: 611 for_each_possible_cpu(i) { 612 cpc_ptr = cpc_pptr[i]; 613 if (cpc_ptr) > 614 kfree(cpc_ptr); 615 } 616 kfree(cpc_pptr); 617 618 return ret; 619 } 620 EXPORT_SYMBOL_GPL(acpi_get_psd_map); 621 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1510/1510] kernel/livepatch/core.c:1013:12: warning: no previous prototype for function 'arch_klp_func_can_patch'
by kernel test robot 28 May '25

28 May '25
Hi Cheng, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5ae76523ccf96ec8b8d73d541e305bf15b6b697e commit: 7e2ab91ea07673f855f16b54b7c6e6853b2efc1c [1510/1510] livepatch/x86: support livepatch without ftrace config: x86_64-randconfig-161-20250322 (https://download.01.org/0day-ci/archive/20250528/202505282149.4WfmWgTw-lkp@…) compiler: clang version 20.1.1 (https://github.com/llvm/llvm-project 424c2d9b7e4de40d0804dd374721e6411c27d1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250528/202505282149.4WfmWgTw-lkp@…) 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(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505282149.4WfmWgTw-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/livepatch/core.c:75:16: warning: no previous prototype for function 'klp_check_patch_kprobed' [-Wmissing-prototypes] 75 | struct kprobe *klp_check_patch_kprobed(struct klp_patch *patch) | ^ kernel/livepatch/core.c:75:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 75 | struct kprobe *klp_check_patch_kprobed(struct klp_patch *patch) | ^ | static kernel/livepatch/core.c:402:5: warning: no previous prototype for function 'klp_try_disable_patch' [-Wmissing-prototypes] 402 | int klp_try_disable_patch(void *data) | ^ kernel/livepatch/core.c:402:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 402 | int klp_try_disable_patch(void *data) | ^ | static kernel/livepatch/core.c:441:13: warning: no previous prototype for function 'arch_klp_code_modify_prepare' [-Wmissing-prototypes] 441 | void __weak arch_klp_code_modify_prepare(void) | ^ kernel/livepatch/core.c:441:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 441 | void __weak arch_klp_code_modify_prepare(void) | ^ | static kernel/livepatch/core.c:445:13: warning: no previous prototype for function 'arch_klp_code_modify_post_process' [-Wmissing-prototypes] 445 | void __weak arch_klp_code_modify_post_process(void) | ^ kernel/livepatch/core.c:445:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 445 | void __weak arch_klp_code_modify_post_process(void) | ^ | static kernel/livepatch/core.c:617:5: warning: no previous prototype for function 'klp_try_enable_patch' [-Wmissing-prototypes] 617 | int klp_try_enable_patch(void *data) | ^ kernel/livepatch/core.c:617:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 617 | int klp_try_enable_patch(void *data) | ^ | static >> kernel/livepatch/core.c:1013:12: warning: no previous prototype for function 'arch_klp_func_can_patch' [-Wmissing-prototypes] 1013 | int __weak arch_klp_func_can_patch(struct klp_func *func) | ^ kernel/livepatch/core.c:1013:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1013 | int __weak arch_klp_func_can_patch(struct klp_func *func) | ^ | static 6 warnings generated. vim +/arch_klp_func_can_patch +1013 kernel/livepatch/core.c b700e7f03df5d92 Seth Jennings 2014-12-16 1011 453d38459f94417 Cheng Jian 2019-01-28 1012 #ifdef CONFIG_LIVEPATCH_WO_FTRACE 453d38459f94417 Cheng Jian 2019-01-28 @1013 int __weak arch_klp_func_can_patch(struct klp_func *func) 453d38459f94417 Cheng Jian 2019-01-28 1014 { 453d38459f94417 Cheng Jian 2019-01-28 1015 return 0; 453d38459f94417 Cheng Jian 2019-01-28 1016 } 453d38459f94417 Cheng Jian 2019-01-28 1017 #endif 453d38459f94417 Cheng Jian 2019-01-28 1018 :::::: The code at line 1013 was first introduced by commit :::::: 453d38459f94417d9d5db7b75ed181a932e34ffc livepatch/arm64: fix func size less than limit :::::: TO: Cheng Jian <cj.chengjian(a)huawei.com> :::::: CC: Xie XiuQi <xiexiuqi(a)huawei.com> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1425/1425] kernel/sched/debug.c:990:17: error: no member named 'nr_wakeups_preferred_cpus' in 'struct dyn_affinity_stats'
by kernel test robot 28 May '25

28 May '25
Hi Hui, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5ae76523ccf96ec8b8d73d541e305bf15b6b697e commit: ebca52abe099caa97d7669d0acc71209ea80cfec [1425/1425] sched: Add statistics for scheduler dynamic affinity config: x86_64-randconfig-103-20250219 (https://download.01.org/0day-ci/archive/20250528/202505282155.ENPZjGwf-lkp@…) 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/20250528/202505282155.ENPZjGwf-lkp@…) 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(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505282155.ENPZjGwf-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/sched/debug.c:815:6: warning: no previous prototype for function 'sysrq_sched_debug_tidy' [-Wmissing-prototypes] 815 | void sysrq_sched_debug_tidy(void) | ^ kernel/sched/debug.c:815:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 815 | void sysrq_sched_debug_tidy(void) | ^ | static >> kernel/sched/debug.c:990:17: error: no member named 'nr_wakeups_preferred_cpus' in 'struct dyn_affinity_stats' 990 | __P(dyn_affi->nr_wakeups_preferred_cpus); | ~~~~~~~~ ^ kernel/sched/debug.c:939:48: note: expanded from macro '__P' 939 | SEQ_printf(m, "%-45s:%21Ld\n", #F, (long long)F) | ^ kernel/sched/debug.c:21:17: note: expanded from macro 'SEQ_printf' 21 | seq_printf(m, x); \ | ^ >> kernel/sched/debug.c:990:17: error: no member named 'nr_wakeups_preferred_cpus' in 'struct dyn_affinity_stats' 990 | __P(dyn_affi->nr_wakeups_preferred_cpus); | ~~~~~~~~ ^ kernel/sched/debug.c:939:48: note: expanded from macro '__P' 939 | SEQ_printf(m, "%-45s:%21Ld\n", #F, (long long)F) | ^ kernel/sched/debug.c:23:11: note: expanded from macro 'SEQ_printf' 23 | pr_cont(x); \ | ^ include/linux/printk.h:362:26: note: expanded from macro 'pr_cont' 362 | printk(KERN_CONT fmt, ##__VA_ARGS__) | ^~~~~~~~~~~ >> kernel/sched/debug.c:991:17: error: no member named 'nr_wakeups_force_preferred_cpus' in 'struct dyn_affinity_stats' 991 | __P(dyn_affi->nr_wakeups_force_preferred_cpus); | ~~~~~~~~ ^ kernel/sched/debug.c:939:48: note: expanded from macro '__P' 939 | SEQ_printf(m, "%-45s:%21Ld\n", #F, (long long)F) | ^ kernel/sched/debug.c:21:17: note: expanded from macro 'SEQ_printf' 21 | seq_printf(m, x); \ | ^ >> kernel/sched/debug.c:991:17: error: no member named 'nr_wakeups_force_preferred_cpus' in 'struct dyn_affinity_stats' 991 | __P(dyn_affi->nr_wakeups_force_preferred_cpus); | ~~~~~~~~ ^ kernel/sched/debug.c:939:48: note: expanded from macro '__P' 939 | SEQ_printf(m, "%-45s:%21Ld\n", #F, (long long)F) | ^ kernel/sched/debug.c:23:11: note: expanded from macro 'SEQ_printf' 23 | pr_cont(x); \ | ^ include/linux/printk.h:362:26: note: expanded from macro 'pr_cont' 362 | printk(KERN_CONT fmt, ##__VA_ARGS__) | ^~~~~~~~~~~ 1 warning and 4 errors generated. vim +990 kernel/sched/debug.c 924 925 void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns, 926 struct seq_file *m) 927 { 928 #ifdef CONFIG_QOS_SCHED_DYNAMIC_AFFINITY 929 struct dyn_affinity_stats *dyn_affi = p->se.dyn_affi_stats; 930 #endif 931 unsigned long nr_switches; 932 933 SEQ_printf(m, "%s (%d, #threads: %d)\n", p->comm, task_pid_nr_ns(p, ns), 934 get_nr_threads(p)); 935 SEQ_printf(m, 936 "---------------------------------------------------------" 937 "----------\n"); 938 #define __P(F) \ 939 SEQ_printf(m, "%-45s:%21Ld\n", #F, (long long)F) 940 #define P(F) \ 941 SEQ_printf(m, "%-45s:%21Ld\n", #F, (long long)p->F) 942 #define P_SCHEDSTAT(F) \ 943 SEQ_printf(m, "%-45s:%21Ld\n", #F, (long long)schedstat_val(p->F)) 944 #define __PN(F) \ 945 SEQ_printf(m, "%-45s:%14Ld.%06ld\n", #F, SPLIT_NS((long long)F)) 946 #define PN(F) \ 947 SEQ_printf(m, "%-45s:%14Ld.%06ld\n", #F, SPLIT_NS((long long)p->F)) 948 #define PN_SCHEDSTAT(F) \ 949 SEQ_printf(m, "%-45s:%14Ld.%06ld\n", #F, SPLIT_NS((long long)schedstat_val(p->F))) 950 951 PN(se.exec_start); 952 PN(se.vruntime); 953 PN(se.sum_exec_runtime); 954 955 nr_switches = p->nvcsw + p->nivcsw; 956 957 P(se.nr_migrations); 958 959 if (schedstat_enabled()) { 960 u64 avg_atom, avg_per_cpu; 961 962 PN_SCHEDSTAT(se.statistics.sum_sleep_runtime); 963 PN_SCHEDSTAT(se.statistics.wait_start); 964 PN_SCHEDSTAT(se.statistics.sleep_start); 965 PN_SCHEDSTAT(se.statistics.block_start); 966 PN_SCHEDSTAT(se.statistics.sleep_max); 967 PN_SCHEDSTAT(se.statistics.block_max); 968 PN_SCHEDSTAT(se.statistics.exec_max); 969 PN_SCHEDSTAT(se.statistics.slice_max); 970 PN_SCHEDSTAT(se.statistics.wait_max); 971 PN_SCHEDSTAT(se.statistics.wait_sum); 972 P_SCHEDSTAT(se.statistics.wait_count); 973 PN_SCHEDSTAT(se.statistics.iowait_sum); 974 P_SCHEDSTAT(se.statistics.iowait_count); 975 P_SCHEDSTAT(se.statistics.nr_migrations_cold); 976 P_SCHEDSTAT(se.statistics.nr_failed_migrations_affine); 977 P_SCHEDSTAT(se.statistics.nr_failed_migrations_running); 978 P_SCHEDSTAT(se.statistics.nr_failed_migrations_hot); 979 P_SCHEDSTAT(se.statistics.nr_forced_migrations); 980 P_SCHEDSTAT(se.statistics.nr_wakeups); 981 P_SCHEDSTAT(se.statistics.nr_wakeups_sync); 982 P_SCHEDSTAT(se.statistics.nr_wakeups_migrate); 983 P_SCHEDSTAT(se.statistics.nr_wakeups_local); 984 P_SCHEDSTAT(se.statistics.nr_wakeups_remote); 985 P_SCHEDSTAT(se.statistics.nr_wakeups_affine); 986 P_SCHEDSTAT(se.statistics.nr_wakeups_affine_attempts); 987 P_SCHEDSTAT(se.statistics.nr_wakeups_passive); 988 P_SCHEDSTAT(se.statistics.nr_wakeups_idle); 989 #ifdef CONFIG_QOS_SCHED_DYNAMIC_AFFINITY > 990 __P(dyn_affi->nr_wakeups_preferred_cpus); > 991 __P(dyn_affi->nr_wakeups_force_preferred_cpus); 992 #endif 993 994 avg_atom = p->se.sum_exec_runtime; 995 if (nr_switches) 996 avg_atom = div64_ul(avg_atom, nr_switches); 997 else 998 avg_atom = -1LL; 999 1000 avg_per_cpu = p->se.sum_exec_runtime; 1001 if (p->se.nr_migrations) { 1002 avg_per_cpu = div64_u64(avg_per_cpu, 1003 p->se.nr_migrations); 1004 } else { 1005 avg_per_cpu = -1LL; 1006 } 1007 1008 __PN(avg_atom); 1009 __PN(avg_per_cpu); 1010 } 1011 1012 __P(nr_switches); 1013 SEQ_printf(m, "%-45s:%21Ld\n", 1014 "nr_voluntary_switches", (long long)p->nvcsw); 1015 SEQ_printf(m, "%-45s:%21Ld\n", 1016 "nr_involuntary_switches", (long long)p->nivcsw); 1017 1018 P(se.load.weight); 1019 P(se.runnable_weight); 1020 #ifdef CONFIG_SMP 1021 P(se.avg.load_sum); 1022 P(se.avg.runnable_load_sum); 1023 P(se.avg.util_sum); 1024 P(se.avg.load_avg); 1025 P(se.avg.runnable_load_avg); 1026 P(se.avg.util_avg); 1027 P(se.avg.last_update_time); 1028 P(se.avg.util_est.ewma); 1029 P(se.avg.util_est.enqueued); 1030 #endif 1031 P(policy); 1032 P(prio); 1033 if (task_has_dl_policy(p)) { 1034 P(dl.runtime); 1035 P(dl.deadline); 1036 } 1037 #undef PN_SCHEDSTAT 1038 #undef PN 1039 #undef __PN 1040 #undef P_SCHEDSTAT 1041 #undef P 1042 #undef __P 1043 1044 { 1045 unsigned int this_cpu = raw_smp_processor_id(); 1046 u64 t0, t1; 1047 1048 t0 = cpu_clock(this_cpu); 1049 t1 = cpu_clock(this_cpu); 1050 SEQ_printf(m, "%-45s:%21Ld\n", 1051 "clock-delta", (long long)(t1-t0)); 1052 } 1053 1054 sched_show_numa(p, m); 1055 } 1056 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 2325/2325] drivers/base/arch_topology.c:811:2: error: implicit declaration of function 'cgroup_ifs_set_smt'
by kernel test robot 28 May '25

28 May '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: cfad96a37ec3a62cb1ea2535fad80e91a1c10ec6 commit: edff31302c6d1f41a3da02c92118b06a203f3248 [2325/2325] interference: Add smt interference track support config: arm64-randconfig-001-20250528 (https://download.01.org/0day-ci/archive/20250528/202505282112.qVJOB1Zd-lkp@…) compiler: aarch64-linux-gcc (GCC) 9.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250528/202505282112.qVJOB1Zd-lkp@…) 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(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505282112.qVJOB1Zd-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/base/arch_topology.c: In function 'update_siblings_masks': >> drivers/base/arch_topology.c:811:2: error: implicit declaration of function 'cgroup_ifs_set_smt' [-Werror=implicit-function-declaration] 811 | cgroup_ifs_set_smt(&cpuid_topo->thread_sibling); | ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for HALTPOLL_CPUIDLE Depends on [n]: CPU_IDLE [=n] && ARCH_CPUIDLE_HALTPOLL [=y] && ARCH_HAS_OPTIMIZED_POLL [=y] Selected by [y]: - ARM64 [=y] vim +/cgroup_ifs_set_smt +811 drivers/base/arch_topology.c 771 772 void update_siblings_masks(unsigned int cpuid) 773 { 774 struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; 775 int cpu, ret; 776 777 ret = detect_cache_attributes(cpuid); 778 if (ret && ret != -ENOENT) 779 pr_info("Early cacheinfo allocation failed, ret = %d\n", ret); 780 781 /* update core and thread sibling masks */ 782 for_each_online_cpu(cpu) { 783 cpu_topo = &cpu_topology[cpu]; 784 785 if (last_level_cache_is_shared(cpu, cpuid)) { 786 cpumask_set_cpu(cpu, &cpuid_topo->llc_sibling); 787 cpumask_set_cpu(cpuid, &cpu_topo->llc_sibling); 788 } 789 790 if (cpuid_topo->package_id != cpu_topo->package_id) 791 continue; 792 793 cpumask_set_cpu(cpuid, &cpu_topo->core_sibling); 794 cpumask_set_cpu(cpu, &cpuid_topo->core_sibling); 795 796 if (cpuid_topo->cluster_id != cpu_topo->cluster_id) 797 continue; 798 799 if (cpuid_topo->cluster_id >= 0) { 800 cpumask_set_cpu(cpu, &cpuid_topo->cluster_sibling); 801 cpumask_set_cpu(cpuid, &cpu_topo->cluster_sibling); 802 } 803 804 if (cpuid_topo->core_id != cpu_topo->core_id) 805 continue; 806 807 cpumask_set_cpu(cpuid, &cpu_topo->thread_sibling); 808 cpumask_set_cpu(cpu, &cpuid_topo->thread_sibling); 809 } 810 > 811 cgroup_ifs_set_smt(&cpuid_topo->thread_sibling); 812 } 813 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • ...
  • 1846
  • Older →

HyperKitty Powered by HyperKitty