From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Ze Zuo <zuoze1@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 2630/2630] include/trace/events/kmem.h:438:1: error: conflicting types for '__traceiter_spe_boost_spe_record'
Date: Mon, 4 Aug 2025 23:45:11 +0800 [thread overview]
Message-ID: <202508042343.eV7Ma2ft-lkp@intel.com> (raw)
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: e46fbbc0ad301c3517340bf966d39b8493a2ebb0
commit: c99ab2e30089c85721b1d05b616cfb7daacf32d6 [2630/2630] arm-spe: Export boost SPE sampling info via tracefs tracepoint
config: arm64-randconfig-r111-20250803 (https://download.01.org/0day-ci/archive/20250804/202508042343.eV7Ma2ft-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce: (https://download.01.org/0day-ci/archive/20250804/202508042343.eV7Ma2ft-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508042343.eV7Ma2ft-lkp@intel.com/
All errors (new ones prefixed by >>):
DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args));
^
include/linux/tracepoint.h:305:6: note: expanded from macro 'DEFINE_TRACE_FN'
int __traceiter_##_name(void *__data, proto); \
^
<scratch space>:127:1: note: expanded from here
__traceiter_mm_spe_record
^
include/trace/events/kmem.h:416:1: note: previous declaration is here
TRACE_EVENT(mm_spe_record,
^
include/linux/tracepoint.h:566:2: note: expanded from macro 'TRACE_EVENT'
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:432:2: note: expanded from macro 'DECLARE_TRACE'
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
^
include/linux/tracepoint.h:252:13: note: expanded from macro '__DECLARE_TRACE'
extern int __traceiter_##name(data_proto); \
^
<scratch space>:50:1: note: expanded from here
__traceiter_mm_spe_record
^
In file included from mm/slab_common.c:35:
In file included from include/trace/events/kmem.h:529:
In file included from include/trace/define_trace.h:95:
include/trace/events/kmem.h:417:18: warning: declaration of 'struct mem_sampling_record' will not be visible outside of this function [-Wvisibility]
TP_PROTO(struct mem_sampling_record *record),
^
include/trace/events/kmem.h:417:18: warning: declaration of 'struct mem_sampling_record' will not be visible outside of this function [-Wvisibility]
include/trace/events/kmem.h:416:1: error: conflicting types for '__traceiter_mm_spe_record'
TRACE_EVENT(mm_spe_record,
^
include/trace/define_trace.h:28:2: note: expanded from macro 'TRACE_EVENT'
DEFINE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:341:2: note: expanded from macro 'DEFINE_TRACE'
DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args));
^
include/linux/tracepoint.h:319:6: note: expanded from macro 'DEFINE_TRACE_FN'
int __traceiter_##_name(void *__data, proto) \
^
<scratch space>:137:1: note: expanded from here
__traceiter_mm_spe_record
^
include/trace/events/kmem.h:416:1: note: previous declaration is here
TRACE_EVENT(mm_spe_record,
^
include/linux/tracepoint.h:566:2: note: expanded from macro 'TRACE_EVENT'
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:432:2: note: expanded from macro 'DECLARE_TRACE'
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
^
include/linux/tracepoint.h:252:13: note: expanded from macro '__DECLARE_TRACE'
extern int __traceiter_##name(data_proto); \
^
<scratch space>:50:1: note: expanded from here
__traceiter_mm_spe_record
^
In file included from mm/slab_common.c:35:
In file included from include/trace/events/kmem.h:529:
In file included from include/trace/define_trace.h:95:
include/trace/events/kmem.h:417:18: warning: declaration of 'struct mem_sampling_record' will not be visible outside of this function [-Wvisibility]
TP_PROTO(struct mem_sampling_record *record),
^
include/trace/events/kmem.h:416:1: error: conflicting types for '__probestub_mm_spe_record'
TRACE_EVENT(mm_spe_record,
^
include/trace/define_trace.h:28:2: note: expanded from macro 'TRACE_EVENT'
DEFINE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:341:2: note: expanded from macro 'DEFINE_TRACE'
DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args));
^
include/linux/tracepoint.h:335:7: note: expanded from macro 'DEFINE_TRACE_FN'
void __probestub_##_name(void *__data, proto) \
^
<scratch space>:2:1: note: expanded from here
__probestub_mm_spe_record
^
include/trace/events/kmem.h:416:1: note: previous declaration is here
include/trace/define_trace.h:28:2: note: expanded from macro 'TRACE_EVENT'
DEFINE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:341:2: note: expanded from macro 'DEFINE_TRACE'
DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args));
^
include/linux/tracepoint.h:306:7: note: expanded from macro 'DEFINE_TRACE_FN'
void __probestub_##_name(void *__data, proto); \
^
<scratch space>:128:1: note: expanded from here
__probestub_mm_spe_record
^
In file included from mm/slab_common.c:35:
In file included from include/trace/events/kmem.h:529:
In file included from include/trace/define_trace.h:95:
include/trace/events/kmem.h:439:18: warning: declaration of 'struct mem_sampling_record' will not be visible outside of this function [-Wvisibility]
TP_PROTO(struct mem_sampling_record *record),
^
>> include/trace/events/kmem.h:438:1: error: conflicting types for '__traceiter_spe_boost_spe_record'
TRACE_EVENT(spe_boost_spe_record,
^
include/trace/define_trace.h:28:2: note: expanded from macro 'TRACE_EVENT'
DEFINE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:341:2: note: expanded from macro 'DEFINE_TRACE'
DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args));
^
include/linux/tracepoint.h:305:6: note: expanded from macro 'DEFINE_TRACE_FN'
int __traceiter_##_name(void *__data, proto); \
^
<scratch space>:12:1: note: expanded from here
__traceiter_spe_boost_spe_record
^
include/trace/events/kmem.h:438:1: note: previous declaration is here
TRACE_EVENT(spe_boost_spe_record,
^
include/linux/tracepoint.h:566:2: note: expanded from macro 'TRACE_EVENT'
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:432:2: note: expanded from macro 'DECLARE_TRACE'
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
^
include/linux/tracepoint.h:252:13: note: expanded from macro '__DECLARE_TRACE'
extern int __traceiter_##name(data_proto); \
^
<scratch space>:5:1: note: expanded from here
__traceiter_spe_boost_spe_record
^
In file included from mm/slab_common.c:35:
In file included from include/trace/events/kmem.h:529:
In file included from include/trace/define_trace.h:95:
include/trace/events/kmem.h:439:18: warning: declaration of 'struct mem_sampling_record' will not be visible outside of this function [-Wvisibility]
TP_PROTO(struct mem_sampling_record *record),
^
include/trace/events/kmem.h:439:18: warning: declaration of 'struct mem_sampling_record' will not be visible outside of this function [-Wvisibility]
>> include/trace/events/kmem.h:438:1: error: conflicting types for '__traceiter_spe_boost_spe_record'
TRACE_EVENT(spe_boost_spe_record,
^
include/trace/define_trace.h:28:2: note: expanded from macro 'TRACE_EVENT'
DEFINE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:341:2: note: expanded from macro 'DEFINE_TRACE'
DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args));
^
include/linux/tracepoint.h:319:6: note: expanded from macro 'DEFINE_TRACE_FN'
int __traceiter_##_name(void *__data, proto) \
^
<scratch space>:22:1: note: expanded from here
__traceiter_spe_boost_spe_record
^
include/trace/events/kmem.h:438:1: note: previous declaration is here
TRACE_EVENT(spe_boost_spe_record,
^
include/linux/tracepoint.h:566:2: note: expanded from macro 'TRACE_EVENT'
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:432:2: note: expanded from macro 'DECLARE_TRACE'
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
^
include/linux/tracepoint.h:252:13: note: expanded from macro '__DECLARE_TRACE'
extern int __traceiter_##name(data_proto); \
^
<scratch space>:5:1: note: expanded from here
__traceiter_spe_boost_spe_record
^
In file included from mm/slab_common.c:35:
In file included from include/trace/events/kmem.h:529:
In file included from include/trace/define_trace.h:95:
include/trace/events/kmem.h:439:18: warning: declaration of 'struct mem_sampling_record' will not be visible outside of this function [-Wvisibility]
TP_PROTO(struct mem_sampling_record *record),
^
>> include/trace/events/kmem.h:438:1: error: conflicting types for '__probestub_spe_boost_spe_record'
TRACE_EVENT(spe_boost_spe_record,
^
include/trace/define_trace.h:28:2: note: expanded from macro 'TRACE_EVENT'
DEFINE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:341:2: note: expanded from macro 'DEFINE_TRACE'
DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args));
^
include/linux/tracepoint.h:335:7: note: expanded from macro 'DEFINE_TRACE_FN'
void __probestub_##_name(void *__data, proto) \
^
<scratch space>:33:1: note: expanded from here
__probestub_spe_boost_spe_record
^
include/trace/events/kmem.h:438:1: note: previous declaration is here
include/trace/define_trace.h:28:2: note: expanded from macro 'TRACE_EVENT'
DEFINE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:341:2: note: expanded from macro 'DEFINE_TRACE'
DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args));
^
include/linux/tracepoint.h:306:7: note: expanded from macro 'DEFINE_TRACE_FN'
void __probestub_##_name(void *__data, proto); \
^
<scratch space>:13:1: note: expanded from here
__probestub_spe_boost_spe_record
^
In file included from mm/slab_common.c:35:
In file included from include/trace/events/kmem.h:529:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:286:
include/trace/events/kmem.h:417:18: warning: declaration of 'struct mem_sampling_record' will not be visible outside of this function [-Wvisibility]
TP_PROTO(struct mem_sampling_record *record),
^
include/trace/events/kmem.h:439:18: warning: declaration of 'struct mem_sampling_record' will not be visible outside of this function [-Wvisibility]
TP_PROTO(struct mem_sampling_record *record),
^
In file included from mm/slab_common.c:35:
In file included from include/trace/events/kmem.h:529:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:460:
include/trace/events/kmem.h:417:18: warning: declaration of 'struct mem_sampling_record' will not be visible outside of this function [-Wvisibility]
TP_PROTO(struct mem_sampling_record *record),
^
include/trace/events/kmem.h:419:10: error: incompatible pointer types passing 'struct mem_sampling_record *' to parameter of type 'struct mem_sampling_record *' [-Werror,-Wincompatible-pointer-types]
TP_ARGS(record),
^~~~~~
include/linux/tracepoint.h:148:26: note: expanded from macro 'TP_ARGS'
#define TP_ARGS(args...) args
^~~~
include/trace/trace_events.h:42:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(args), \
^~~~
include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^~~~
include/trace/trace_events.h:427:51: note: expanded from macro 'DECLARE_EVENT_CLASS'
__DECLARE_EVENT_CLASS(call, PARAMS(proto), PARAMS(args), PARAMS(tstruct), \
^~~~
include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^~~~
include/trace/trace_events.h:410:64: note: expanded from macro '\
__DECLARE_EVENT_CLASS'
__data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
^~~~
include/trace/events/kmem.h:417:39: note: passing argument to parameter 'record' here
TP_PROTO(struct mem_sampling_record *record),
^
In file included from mm/slab_common.c:35:
In file included from include/trace/events/kmem.h:529:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:460:
include/trace/events/kmem.h:428:26: error: incomplete definition of type 'struct mem_sampling_record'
__entry->vaddr = record->virt_addr;
~~~~~~^
include/trace/stages/stage6_event_callback.h:135:33: note: expanded from macro 'TP_fast_assign'
#define TP_fast_assign(args...) args
^~~~
include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(assign), \
^~~~~~
include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^~~~
include/trace/trace_events.h:428:16: note: expanded from macro 'DECLARE_EVENT_CLASS'
PARAMS(assign), PARAMS(print)) \
^~~~~~
include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^~~~
include/trace/trace_events.h:420:4: note: expanded from macro '\
__DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/events/kmem.h:417:18: note: forward declaration of 'struct mem_sampling_record'
TP_PROTO(struct mem_sampling_record *record),
^
include/trace/events/kmem.h:429:26: error: incomplete definition of type 'struct mem_sampling_record'
__entry->paddr = record->phys_addr;
Kconfig warnings: (for reference only)
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 +438 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
reply other threads:[~2025-08-04 15:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202508042343.eV7Ma2ft-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zuoze1@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.