All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:dd-stack 16/19] include/trace/trace_events.h:656:2: warning: 'perf_trace_dyndbg' used but never defined
@ 2021-12-03  4:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-03  4:46 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/jimc/linux.git dd-stack
head:   5259aebf5f0de40eea572cdbe02b22c82f996c92
commit: f616d2051a608d06d76c4dc86710d08fe15e05a9 [16/19] printk.h - split trace-event to declar-class+define-event
config: i386-randconfig-m021-20211203 (https://download.01.org/0day-ci/archive/20211203/202112031249.8JRQHIPz-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/jimc/linux/commit/f616d2051a608d06d76c4dc86710d08fe15e05a9
        git remote add jimc https://github.com/jimc/linux.git
        git fetch --no-tags jimc dd-stack
        git checkout f616d2051a608d06d76c4dc86710d08fe15e05a9
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 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 >>):

   include/trace/trace_events.h:656:34: note: in definition of macro '_TRACE_PERF_PROTO'
     656 |  perf_trace_##call(void *__data, proto);
         |                                  ^~~~~
   include/trace/trace_events.h:791:25: note: in expansion of macro 'PARAMS'
     791 | _TRACE_PERF_PROTO(call, PARAMS(proto));     \
         |                         ^~~~~~
   include/trace/events/printk.h:40:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
      40 | DECLARE_EVENT_CLASS(dyndbg,
         | ^~~~~~~~~~~~~~~~~~~
   include/trace/events/printk.h:41:2: note: in expansion of macro 'TP_PROTO'
      41 |  TP_PROTO(const struct _ddebug *desc, const char *text, size_t len),
         |  ^~~~~~~~
   In file included from include/trace/define_trace.h:103,
                    from include/trace/events/printk.h:73,
                    from kernel/printk/printk.c:56:
   include/trace/events/printk.h:41:24: warning: 'struct _ddebug' declared inside parameter list will not be visible outside of this definition or declaration
      41 |  TP_PROTO(const struct _ddebug *desc, const char *text, size_t len),
         |                        ^~~~~~~
   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:41:2: note: in expansion of macro 'TP_PROTO'
      41 |  TP_PROTO(const struct _ddebug *desc, const char *text, size_t len),
         |  ^~~~~~~~
   include/trace/perf.h:33:1: error: conflicting types for 'perf_trace_dyndbg'
      33 | perf_trace_##call(void *__data, proto)     \
         | ^~~~~~~~~~~
   include/trace/events/printk.h:40:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
      40 | DECLARE_EVENT_CLASS(dyndbg,
         | ^~~~~~~~~~~~~~~~~~~
   In file included from include/trace/define_trace.h:102,
                    from include/trace/events/printk.h:73,
                    from kernel/printk/printk.c:56:
   include/trace/trace_events.h:656:2: note: previous declaration of 'perf_trace_dyndbg' was here
     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:40:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
      40 | DECLARE_EVENT_CLASS(dyndbg,
         | ^~~~~~~~~~~~~~~~~~~
   In file included from include/trace/define_trace.h:103,
                    from include/trace/events/printk.h:73,
                    from kernel/printk/printk.c:56:
   include/trace/events/printk.h: In function 'perf_trace_dyndbg':
   include/trace/events/printk.h:43:10: error: passing argument 2 of 'trace_event_get_offsets_dyndbg' from incompatible pointer type [-Werror=incompatible-pointer-types]
      43 |  TP_ARGS(desc, text, len),
         |          ^~~~
         |          |
         |          const struct _ddebug *
   include/trace/perf.h:46:64: note: in definition of macro 'DECLARE_EVENT_CLASS'
      46 |  __data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
         |                                                                ^~~~
   include/trace/events/printk.h:43:2: note: in expansion of macro 'TP_ARGS'
      43 |  TP_ARGS(desc, text, len),
         |  ^~~~~~~
   In file included from include/trace/define_trace.h:102,
                    from include/trace/events/printk.h:73,
                    from kernel/printk/printk.c:56:
   include/trace/events/printk.h:41:33: note: expected 'const struct _ddebug *' but argument is of type 'const struct _ddebug *'
      41 |  TP_PROTO(const struct _ddebug *desc, const char *text, size_t len),
         |           ~~~~~~~~~~~~~~~~~~~~~~^~~~
   include/trace/trace_events.h:548:58: note: in definition of macro 'DECLARE_EVENT_CLASS'
     548 |  struct trace_event_data_offsets_##call *__data_offsets, proto) \
         |                                                          ^~~~~
   include/trace/events/printk.h:41:2: note: in expansion of macro 'TP_PROTO'
      41 |  TP_PROTO(const struct _ddebug *desc, const char *text, size_t len),
         |  ^~~~~~~~
   In file included from include/trace/define_trace.h:103,
                    from include/trace/events/printk.h:73,
                    from kernel/printk/printk.c:56:
   include/trace/events/printk.h: In function 'perf_test_probe_pr_debug':
   include/trace/perf.h:82:35: error: passing argument 1 of 'check_trace_callback_type_pr_debug' from incompatible pointer type [-Werror=incompatible-pointer-types]
      82 |  check_trace_callback_type_##call(perf_trace_##template); \
         |                                   ^~~~~~~~~~~
         |                                   |
         |                                   void (*)(void *, const struct _ddebug *, const char *, size_t) {aka void (*)(void *, const struct _ddebug *, const char *, unsigned int)}
   include/trace/events/printk.h:65:1: note: in expansion of macro 'DEFINE_EVENT'
      65 | DEFINE_EVENT(dyndbg, pr_debug,
         | ^~~~~~~~~~~~
   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:42: note: expected 'void (*)(void *, const struct _ddebug *, const char *, size_t)' {aka 'void (*)(void *, const struct _ddebug *, const char *, unsigned int)'} but argument is of type 'void (*)(void *, const struct _ddebug *, const char *, size_t)' {aka 'void (*)(void *, const struct _ddebug *, const char *, unsigned int)'}
     279 |  check_trace_callback_type_##name(void (*cb)(data_proto)) \
         |                                   ~~~~~~~^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:419:2: note: in expansion of macro '__DECLARE_TRACE'
     419 |  __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
         |  ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:542:2: note: in expansion of macro 'DECLARE_TRACE'
     542 |  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
         |  ^~~~~~~~~~~~~
   include/trace/events/printk.h:65:1: note: in expansion of macro 'DEFINE_EVENT'
      65 | DEFINE_EVENT(dyndbg, pr_debug,
         | ^~~~~~~~~~~~
   In file included from include/trace/define_trace.h:102,
                    from include/trace/events/printk.h:73,
                    from kernel/printk/printk.c:56:
   kernel/printk/printk.c: At top level:
>> include/trace/trace_events.h:656:2: warning: 'perf_trace_dyndbg' 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:40:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
      40 | DECLARE_EVENT_CLASS(dyndbg,
         | ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/perf_trace_dyndbg +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-03  4:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-03  4:46 [jimc:dd-stack 16/19] include/trace/trace_events.h:656:2: warning: 'perf_trace_dyndbg' 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.