Re: [PATCH] tracing: Error if a trace event has an array for a __field()
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2023-03-10 15:08:09
Also in:
lkml, oe-kbuild-all
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2023-03-10 15:08:09
Also in:
lkml, oe-kbuild-all
On Fri, 10 Mar 2023 16:37:09 +0800 kernel test robot [off-list ref] 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