[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207141355.km2b3nJn-lkp@intel.com>
Date: Thu, 14 Jul 2022 13:56:16 +0800
From: kernel test robot <lkp@...el.com>
To: "Steven Rostedt (Google)" <rostedt@...dmis.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
Ammar Faizi <ammarfaizi2@...weeb.org>,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org
Subject: [ammarfaizi2-block:rostedt/linux-trace/ftrace/core 19/29]
drivers/usb/mtu3/./mtu3_trace.h:28:36: error: type name requires a specifier
or qualifier
tree: https://github.com/ammarfaizi2/linux-block rostedt/linux-trace/ftrace/core
head: b8976da14be8bc7b16521c6afacc7bbda341722e
commit: 5019d01754a9c8fcc716d4995b21783de8330616 [19/29] USB: mtu3: tracing: Use the new __vstring() helper
config: hexagon-buildonly-randconfig-r004-20220714
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e61b9c556267086ef9b743a0b57df302eef831b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/ammarfaizi2/linux-block/commit/5019d01754a9c8fcc716d4995b21783de8330616
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block rostedt/linux-trace/ftrace/core
git checkout 5019d01754a9c8fcc716d4995b21783de8330616
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/usb/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from drivers/usb/mtu3/mtu3_trace.c:12:
In file included from drivers/usb/mtu3/./mtu3_trace.h:279:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:94:
>> drivers/usb/mtu3/./mtu3_trace.h:28:36: error: type name requires a specifier or qualifier
__vstring(msg, vaf->fmt, vaf->va),
^
>> drivers/usb/mtu3/./mtu3_trace.h:28:36: error: expected member name or ';' after declaration specifiers
drivers/usb/mtu3/./mtu3_trace.h:23:1: error: expected member name or ';' after declaration specifiers
TRACE_EVENT(mtu3_log,
^
include/trace/trace_events.h:40:2: note: expanded from macro 'TRACE_EVENT'
DECLARE_EVENT_CLASS(name, \
^
include/trace/trace_events.h:55:3: note: expanded from macro 'DECLARE_EVENT_CLASS'
char __data[]; \
^
In file included from drivers/usb/mtu3/mtu3_trace.c:12:
In file included from drivers/usb/mtu3/./mtu3_trace.h:279:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:94:
>> drivers/usb/mtu3/./mtu3_trace.h:23:1: error: expected ';' at end of declaration list
include/trace/trace_events.h:40:2: note: expanded from macro 'TRACE_EVENT'
DECLARE_EVENT_CLASS(name, \
^
include/trace/trace_events.h:55:3: note: expanded from macro 'DECLARE_EVENT_CLASS'
char __data[]; \
^
In file included from drivers/usb/mtu3/mtu3_trace.c:12:
In file included from drivers/usb/mtu3/./mtu3_trace.h:279:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:132:
>> drivers/usb/mtu3/./mtu3_trace.h:28:36: error: type name requires a specifier or qualifier
__vstring(msg, vaf->fmt, vaf->va),
^
>> drivers/usb/mtu3/./mtu3_trace.h:28:36: error: expected member name or ';' after declaration specifiers
drivers/usb/mtu3/./mtu3_trace.h:23:1: error: expected member name or ';' after declaration specifiers
TRACE_EVENT(mtu3_log,
^
include/trace/trace_events.h:40:2: note: expanded from macro 'TRACE_EVENT'
DECLARE_EVENT_CLASS(name, \
^
include/trace/trace_events.h:117:10: note: expanded from macro 'DECLARE_EVENT_CLASS'
tstruct; \
^
In file included from drivers/usb/mtu3/mtu3_trace.c:12:
In file included from drivers/usb/mtu3/./mtu3_trace.h:279:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:250:
>> drivers/usb/mtu3/./mtu3_trace.h:28:36: error: expected expression
__vstring(msg, vaf->fmt, vaf->va),
^
In file included from drivers/usb/mtu3/mtu3_trace.c:12:
In file included from drivers/usb/mtu3/./mtu3_trace.h:279:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:268:
>> drivers/usb/mtu3/./mtu3_trace.h:27:3: error: no member named '__data' in 'trace_event_raw_mtu3_log'
__string(name, dev_name(dev))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/stages/stage5_get_offsets.h:36:29: note: expanded from macro '__string'
#define __string(item, src) __dynamic_array(char, item, \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/stages/stage5_get_offsets.h:31:11: note: expanded from macro '__dynamic_array'
offsetof(typeof(*entry), __data); \
^ ~~~~~~
include/linux/stddef.h:16:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
^ ~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/trace/trace_events.h:43:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(tstruct), \
^~~~~~~
include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^~~~
include/trace/trace_events.h:263:2: note: expanded from macro 'DECLARE_EVENT_CLASS'
tstruct; \
^~~~~~~
In file included from drivers/usb/mtu3/mtu3_trace.c:12:
In file included from drivers/usb/mtu3/./mtu3_trace.h:279:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:268:
drivers/usb/mtu3/./mtu3_trace.h:28:3: error: no member named '__data' in 'trace_event_raw_mtu3_log'
__vstring(msg, vaf->fmt, vaf->va),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/stages/stage5_get_offsets.h:43:34: note: expanded from macro '__vstring'
#define __vstring(item, fmt, ap) __dynamic_array(char, item, \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/stages/stage5_get_offsets.h:31:11: note: expanded from macro '__dynamic_array'
offsetof(typeof(*entry), __data); \
^ ~~~~~~
include/linux/stddef.h:16:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
^ ~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/trace/trace_events.h:43:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(tstruct), \
^~~~~~~
include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^~~~
include/trace/trace_events.h:263:2: note: expanded from macro 'DECLARE_EVENT_CLASS'
tstruct; \
^~~~~~~
In file included from drivers/usb/mtu3/mtu3_trace.c:12:
In file included from drivers/usb/mtu3/./mtu3_trace.h:279:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:268:
>> drivers/usb/mtu3/./mtu3_trace.h:28:36: error: expected expression
__vstring(msg, vaf->fmt, vaf->va),
^
drivers/usb/mtu3/./mtu3_trace.h:23:1: error: expected expression
TRACE_EVENT(mtu3_log,
^
include/trace/trace_events.h:40:2: note: expanded from macro 'TRACE_EVENT'
DECLARE_EVENT_CLASS(name, \
^
include/trace/trace_events.h:263:9: note: expanded from macro 'DECLARE_EVENT_CLASS'
tstruct; \
^
In file included from drivers/usb/mtu3/mtu3_trace.c:12:
In file included from drivers/usb/mtu3/./mtu3_trace.h:279:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:419:
>> drivers/usb/mtu3/./mtu3_trace.h:28:36: error: expected expression
__vstring(msg, vaf->fmt, vaf->va),
^
13 errors generated.
vim +28 drivers/usb/mtu3/./mtu3_trace.h
22
> 23 TRACE_EVENT(mtu3_log,
24 TP_PROTO(struct device *dev, struct va_format *vaf),
25 TP_ARGS(dev, vaf),
26 TP_STRUCT__entry(
> 27 __string(name, dev_name(dev))
> 28 __vstring(msg, vaf->fmt, vaf->va),
29 ),
30 TP_fast_assign(
31 __assign_str(name, dev_name(dev));
32 __assign_vstr(msg, vaf->fmt, vaf->va);
33 ),
34 TP_printk("%s: %s", __get_str(name), __get_str(msg))
35 );
36
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (105357 bytes)
Powered by blists - more mailing lists