All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:v3 12/12] include/trace/trace_events.h:656:9: warning: 'perf_trace_printk_x1' used but never defined
@ 2021-12-04  5:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-04  5:12 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 10795 bytes --]

tree:   https://github.com/jimc/linux.git v3
head:   3ca765482fccb6529d8cadbba96faa7ac9ff59fe
commit: 3ca765482fccb6529d8cadbba96faa7ac9ff59fe [12/12] fixup: try to straighten naming mess
config: csky-randconfig-r016-20211203 (https://download.01.org/0day-ci/archive/20211204/202112041318.kAk5jXB7-lkp(a)intel.com/config)
compiler: csky-linux-gcc (GCC) 11.2.0
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/jimc/linux/commit/3ca765482fccb6529d8cadbba96faa7ac9ff59fe
        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=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash kernel/printk/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

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_TRACE'
     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 declaration
      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_PROTO'
      72 |         TP_PROTO(const struct _ddebug *desc, const struct device *dev,
         |         ^~~~~~~~
   include/trace/perf.h:33:1: error: conflicting types for 'perf_trace_printk_x2'; have 'void(void *, const struct _ddebug *, const struct device *, const char *, size_t)' {aka 'void(void *, const struct _ddebug *, const struct 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 struct 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=incompatible-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 = trace_event_get_offsets_##call(&__data_offsets, 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 _ddebug *' 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 'DECLARE_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_PROTO'
      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_callback_type_dev_dbg' from incompatible pointer type [-Werror=incompatible-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 *, unsigned 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 *, const struct _ddebug *, const struct device *, const char *, size_t)' {aka 'void (*)(void *, const struct _ddebug *, const struct device *, const char *, unsigned int)'} but argument is of type 'void (*)(void *, const struct _ddebug *, 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_TRACE'
     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_PERF_PROTO(call, proto)					\
46ac51822a6a0b Steven Rostedt (Red Hat  2015-09-23  655) 	static notrace void						\
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) <rostedt@goodmis.org>
:::::: CC: Steven Rostedt <rostedt@goodmis.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-04  5:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-04  5:12 [jimc:v3 12/12] include/trace/trace_events.h:656:9: warning: 'perf_trace_printk_x1' used but never defined kernel test robot

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.