Re: [PATCH] tracing: Error if a trace event has an array for a __field()

From: Steven Rostedt
Date: Fri Mar 10 2023 - 10:08:09 EST


On Fri, 10 Mar 2023 16:37:09 +0800
kernel test robot <lkp@xxxxxxxxx> wrote:

> include/trace/events/rcu.h:771:17: note: in expansion of macro '__field'
> 771 | __field(char, rcutorturename[RCUTORTURENAME_LEN])
> | ^~~~~~~

Awesome, it found the bug that this patch is suppose to find! :-)

The above needs to be changed to:

__array(char, rcutorturename, RCUTORTURENAME_LEN)

And my patch will fail builds that have arrays in __field() macros.

Yes, I'm not going to apply this patch until the current bugs in the kernel
are fixed, because this patch will cause the kernel not to build if it has
this type of bug.

-- Steve