From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7141520131826915832==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [jimc:v3 12/12] include/trace/trace_events.h:656:9: warning: 'perf_trace_printk_x1' used but never defined Date: Sat, 04 Dec 2021 13:12:34 +0800 Message-ID: <202112041318.kAk5jXB7-lkp@intel.com> List-Id: --===============7141520131826915832== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/jimc/linux.git v3 head: 3ca765482fccb6529d8cadbba96faa7ac9ff59fe commit: 3ca765482fccb6529d8cadbba96faa7ac9ff59fe [12/12] fixup: try to stra= ighten naming mess config: csky-randconfig-r016-20211203 (https://download.01.org/0day-ci/arch= ive/20211204/202112041318.kAk5jXB7-lkp(a)intel.com/config) compiler: csky-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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/jimc/linux/commit/3ca765482fccb6529d8cadbba96f= aa7ac9ff59fe git remote add jimc https://github.com/jimc/linux.git git fetch --no-tags jimc v3 git checkout 3ca765482fccb6529d8cadbba96faa7ac9ff59fe # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dcsky SHELL=3D/bin/bash kernel/printk/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): 279 | check_trace_callback_type_##name(void (*cb)(data_proto))= \ | ~~~~~~~^~~~~~~~~~~~~~~ include/linux/tracepoint.h:419:9: note: in expansion of macro '__DECLARE= _TRACE' 419 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), = \ | ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:542:9: note: in expansion of macro 'DECLARE_T= RACE' 542 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^~~~~~~~~~~~~ include/trace/events/printk.h:66:1: note: in expansion of macro 'DEFINE_= EVENT' 66 | DEFINE_EVENT(printk_x1, pr_debug, | ^~~~~~~~~~~~ In file included from include/trace/define_trace.h:103, from include/trace/events/printk.h:107, from kernel/printk/printk.c:56: include/trace/events/printk.h: At top level: include/trace/events/printk.h:72:31: warning: 'struct _ddebug' declared = inside parameter list will not be visible outside of this definition or dec= laration 72 | TP_PROTO(const struct _ddebug *desc, const struct device= *dev, | ^~~~~~~ include/trace/perf.h:33:33: note: in definition of macro 'DECLARE_EVENT_= CLASS' 33 | perf_trace_##call(void *__data, proto) = \ | ^~~~~ include/trace/events/printk.h:72:9: note: in expansion of macro 'TP_PROT= O' 72 | TP_PROTO(const struct _ddebug *desc, const struct device= *dev, | ^~~~~~~~ include/trace/perf.h:33:1: error: conflicting types for 'perf_trace_prin= tk_x2'; have 'void(void *, const struct _ddebug *, const struct device *, c= onst char *, size_t)' {aka 'void(void *, const struct _ddebug *, const stru= ct device *, const char *, unsigned int)'} 33 | perf_trace_##call(void *__data, proto) = \ | ^~~~~~~~~~~ include/trace/events/printk.h:71:1: note: in expansion of macro 'DECLARE= _EVENT_CLASS' 71 | DECLARE_EVENT_CLASS(printk_x2, // worked with dyndbg too !!! | ^~~~~~~~~~~~~~~~~~~ In file included from include/trace/define_trace.h:102, from include/trace/events/printk.h:107, from kernel/printk/printk.c:56: include/trace/trace_events.h:656:9: note: previous declaration of 'perf_= trace_printk_x2' with type 'void(void *, const struct _ddebug *, const stru= ct device *, const char *, size_t)' {aka 'void(void *, const struct _ddebug= *, const struct device *, const char *, unsigned int)'} 656 | perf_trace_##call(void *__data, proto); | ^~~~~~~~~~~ include/trace/trace_events.h:791:1: note: in expansion of macro '_TRACE_= PERF_PROTO' 791 | _TRACE_PERF_PROTO(call, PARAMS(proto)); = \ | ^~~~~~~~~~~~~~~~~ include/trace/events/printk.h:71:1: note: in expansion of macro 'DECLARE= _EVENT_CLASS' 71 | DECLARE_EVENT_CLASS(printk_x2, // worked with dyndbg too !!! | ^~~~~~~~~~~~~~~~~~~ In file included from include/trace/define_trace.h:103, from include/trace/events/printk.h:107, from kernel/printk/printk.c:56: include/trace/events/printk.h: In function 'perf_trace_printk_x2': include/trace/events/printk.h:75:17: error: passing argument 2 of 'trace= _event_get_offsets_printk_x2' from incompatible pointer type [-Werror=3Dinc= ompatible-pointer-types] 75 | TP_ARGS(desc, dev, text, len), | ^~~~ | | | const struct _ddebug * include/trace/perf.h:46:71: note: in definition of macro 'DECLARE_EVENT_= CLASS' 46 | __data_size =3D trace_event_get_offsets_##call(&__data_o= ffsets, args); \ | = ^~~~ include/trace/events/printk.h:75:9: note: in expansion of macro 'TP_ARGS' 75 | TP_ARGS(desc, dev, text, len), | ^~~~~~~ In file included from include/trace/define_trace.h:102, from include/trace/events/printk.h:107, from kernel/printk/printk.c:56: include/trace/events/printk.h:72:40: note: expected 'const struct _ddebu= g *' but argument is of type 'const struct _ddebug *' 72 | TP_PROTO(const struct _ddebug *desc, const struct device= *dev, | ~~~~~~~~~~~~~~~~~~~~~~^~~~ include/trace/trace_events.h:548:65: note: in definition of macro 'DECLA= RE_EVENT_CLASS' 548 | struct trace_event_data_offsets_##call *__data_offsets, = proto) \ | = ^~~~~ include/trace/events/printk.h:72:9: note: in expansion of macro 'TP_PROT= O' 72 | TP_PROTO(const struct _ddebug *desc, const struct device= *dev, | ^~~~~~~~ In file included from include/trace/define_trace.h:103, from include/trace/events/printk.h:107, from kernel/printk/printk.c:56: include/trace/events/printk.h: In function 'perf_test_probe_dev_dbg': include/trace/perf.h:82:42: error: passing argument 1 of 'check_trace_ca= llback_type_dev_dbg' from incompatible pointer type [-Werror=3Dincompatible= -pointer-types] 82 | check_trace_callback_type_##call(perf_trace_##template);= \ | ^~~~~~~~~~~ | | | void (*)(void *, const = struct _ddebug *, const struct device *, const char *, size_t) {aka void (*= )(void *, const struct _ddebug *, const struct device *, const char *, unsi= gned int)} include/trace/events/printk.h:97:1: note: in expansion of macro 'DEFINE_= EVENT' 97 | DEFINE_EVENT(printk_x2, dev_dbg, | ^~~~~~~~~~~~ In file included from include/trace/syscall.h:5, from include/linux/syscalls.h:88, from kernel/printk/printk.c:36: include/linux/tracepoint.h:279:49: note: expected 'void (*)(void *, cons= t struct _ddebug *, const struct device *, const char *, size_t)' {aka 'voi= d (*)(void *, const struct _ddebug *, const struct device *, const char *, = unsigned int)'} but argument is of type 'void (*)(void *, const struct _dde= bug *, const struct device *, const char *, size_t)' {aka 'void (*)(void *,= const struct _ddebug *, const struct device *, const char *, unsigned int)= '} 279 | check_trace_callback_type_##name(void (*cb)(data_proto))= \ | ~~~~~~~^~~~~~~~~~~~~~~ include/linux/tracepoint.h:419:9: note: in expansion of macro '__DECLARE= _TRACE' 419 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), = \ | ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:542:9: note: in expansion of macro 'DECLARE_T= RACE' 542 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^~~~~~~~~~~~~ include/trace/events/printk.h:97:1: note: in expansion of macro 'DEFINE_= EVENT' 97 | DEFINE_EVENT(printk_x2, dev_dbg, | ^~~~~~~~~~~~ In file included from include/trace/define_trace.h:102, from include/trace/events/printk.h:107, from kernel/printk/printk.c:56: kernel/printk/printk.c: At top level: >> include/trace/trace_events.h:656:9: warning: 'perf_trace_printk_x1' used= but never defined 656 | perf_trace_##call(void *__data, proto); | ^~~~~~~~~~~ include/trace/trace_events.h:791:1: note: in expansion of macro '_TRACE_= PERF_PROTO' 791 | _TRACE_PERF_PROTO(call, PARAMS(proto)); = \ | ^~~~~~~~~~~~~~~~~ include/trace/events/printk.h:41:1: note: in expansion of macro 'DECLARE= _EVENT_CLASS' 41 | DECLARE_EVENT_CLASS(printk_x1, | ^~~~~~~~~~~~~~~~~~~ >> include/trace/trace_events.h:656:9: warning: 'perf_trace_printk_x2' used= but never defined 656 | perf_trace_##call(void *__data, proto); | ^~~~~~~~~~~ include/trace/trace_events.h:791:1: note: in expansion of macro '_TRACE_= PERF_PROTO' 791 | _TRACE_PERF_PROTO(call, PARAMS(proto)); = \ | ^~~~~~~~~~~~~~~~~ include/trace/events/printk.h:71:1: note: in expansion of macro 'DECLARE= _EVENT_CLASS' 71 | DECLARE_EVENT_CLASS(printk_x2, // worked with dyndbg too !!! | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/perf_trace_printk_x1 +656 include/trace/trace_events.h 46ac51822a6a0b Steven Rostedt (Red Hat 2015-09-23 653) = 46ac51822a6a0b Steven Rostedt (Red Hat 2015-09-23 654) #define _TRACE_PER= F_PROTO(call, proto) \ 46ac51822a6a0b Steven Rostedt (Red Hat 2015-09-23 655) static notrace vo= id \ 46ac51822a6a0b Steven Rostedt (Red Hat 2015-09-23 @656) perf_trace_##call= (void *__data, proto); 46ac51822a6a0b Steven Rostedt (Red Hat 2015-09-23 657) = :::::: The code at line 656 was first introduced by commit :::::: 46ac51822a6a0b83ee3e408ee9edcb292fb8ced0 tracing: Move non perf code= out of perf.h :::::: TO: Steven Rostedt (Red Hat) :::::: CC: Steven Rostedt --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7141520131826915832==--