All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tracepoints: Do not punish non static call users
@ 2021-02-04 19:17 Steven Rostedt
  2021-02-04 19:52 ` Mathieu Desnoyers
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Steven Rostedt @ 2021-02-04 19:17 UTC (permalink / raw)
  To: LKML; +Cc: Ingo Molnar, Andrew Morton, Peter Zijlstra, Mathieu Desnoyers

With static calls, a tracepoint can call the callback directly if there is
only one callback registered to that tracepoint. When there is more than
one, the static call will call the tracepoint's "iterator" function, which
needs to reload the tracepoint's "funcs" array again, as it could have
changed since the first time it was loaded.

But an arch without static calls is punished by having to load the
tracepoint's "funcs" array twice. Once in the DO_TRACE macro, and once
again in the iterator macro.

For archs without static calls, there's no reason to load the array macro
in the first place, since the iterator function will do it anyway.

Change the __DO_TRACE_CALL() macro to do the double call only for
architectures with static calls, and just call the iterator function
directly for architectures without static calls.

[ Tested only on architectures with static calls, will test on those
  without later ]

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index dc1d4c612cc3..966bfa6a861c 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -152,9 +152,18 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
 #ifdef TRACEPOINTS_ENABLED
 
 #ifdef CONFIG_HAVE_STATIC_CALL
-#define __DO_TRACE_CALL(name)	static_call(tp_func_##name)
+#define __DO_TRACE_CALL(name, args)					\
+	do {								\
+		struct tracepoint_func *it_func_ptr;			\
+		it_func_ptr =						\
+			rcu_dereference_raw((&__tracepoint_##name)->funcs); \
+		if (it_func_ptr) {					\
+			__data = (it_func_ptr)->data;			\
+			static_call(tp_func_##name)(args);		\
+		}							\
+	} while (0)
 #else
-#define __DO_TRACE_CALL(name)	__traceiter_##name
+#define __DO_TRACE_CALL(name, args)	__traceiter_##name(args)
 #endif /* CONFIG_HAVE_STATIC_CALL */
 
 /*
@@ -168,7 +177,6 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
  */
 #define __DO_TRACE(name, proto, args, cond, rcuidle)			\
 	do {								\
-		struct tracepoint_func *it_func_ptr;			\
 		int __maybe_unused __idx = 0;				\
 		void *__data;						\
 									\
@@ -190,12 +198,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
 			rcu_irq_enter_irqson();				\
 		}							\
 									\
-		it_func_ptr =						\
-			rcu_dereference_raw((&__tracepoint_##name)->funcs); \
-		if (it_func_ptr) {					\
-			__data = (it_func_ptr)->data;			\
-			__DO_TRACE_CALL(name)(args);			\
-		}							\
+		__DO_TRACE_CALL(name, TP_ARGS(args));			\
 									\
 		if (rcuidle) {						\
 			rcu_irq_exit_irqson();				\

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] tracepoints: Do not punish non static call users
  2021-02-04 19:17 [PATCH] tracepoints: Do not punish non static call users Steven Rostedt
@ 2021-02-04 19:52 ` Mathieu Desnoyers
  2021-02-04 20:09   ` Steven Rostedt
  2021-02-05 15:57   ` kernel test robot
  2021-02-05 21:35   ` kernel test robot
  2 siblings, 1 reply; 7+ messages in thread
From: Mathieu Desnoyers @ 2021-02-04 19:52 UTC (permalink / raw)
  To: rostedt; +Cc: linux-kernel, Ingo Molnar, Andrew Morton, Peter Zijlstra

----- On Feb 4, 2021, at 2:17 PM, rostedt rostedt@goodmis.org wrote:

> With static calls, a tracepoint can call the callback directly if there is
> only one callback registered to that tracepoint. When there is more than
> one, the static call will call the tracepoint's "iterator" function, which
> needs to reload the tracepoint's "funcs" array again, as it could have
> changed since the first time it was loaded.
> 
> But an arch without static calls is punished by having to load the
> tracepoint's "funcs" array twice. Once in the DO_TRACE macro, and once
> again in the iterator macro.

In addition to loading it, it needs to test it against NULL twice.

> 
> For archs without static calls, there's no reason to load the array macro
> in the first place, since the iterator function will do it anyway.
> 
> Change the __DO_TRACE_CALL() macro to do the double call only for

Do you mean "double call" or "double load and NULL check" ?

> architectures with static calls, and just call the iterator function
> directly for architectures without static calls.
> 
> [ Tested only on architectures with static calls, will test on those
>  without later ]
> 
> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
> ---
> diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
> index dc1d4c612cc3..966bfa6a861c 100644
> --- a/include/linux/tracepoint.h
> +++ b/include/linux/tracepoint.h
> @@ -152,9 +152,18 @@ static inline struct tracepoint
> *tracepoint_ptr_deref(tracepoint_ptr_t *p)
> #ifdef TRACEPOINTS_ENABLED
> 
> #ifdef CONFIG_HAVE_STATIC_CALL
> -#define __DO_TRACE_CALL(name)	static_call(tp_func_##name)
> +#define __DO_TRACE_CALL(name, args)					\
> +	do {								\
> +		struct tracepoint_func *it_func_ptr;			\
> +		it_func_ptr =						\
> +			rcu_dereference_raw((&__tracepoint_##name)->funcs); \
> +		if (it_func_ptr) {					\
> +			__data = (it_func_ptr)->data;			\
> +			static_call(tp_func_##name)(args);		\
> +		}							\
> +	} while (0)
> #else
> -#define __DO_TRACE_CALL(name)	__traceiter_##name
> +#define __DO_TRACE_CALL(name, args)	__traceiter_##name(args)

Also, we may want to comment or annotate the "void *data" argument of
__traceiter_##_name() to state that it is unused.

Thanks,

Mathieu

> #endif /* CONFIG_HAVE_STATIC_CALL */
> 
> /*
> @@ -168,7 +177,6 @@ static inline struct tracepoint
> *tracepoint_ptr_deref(tracepoint_ptr_t *p)
>  */
> #define __DO_TRACE(name, proto, args, cond, rcuidle)			\
> 	do {								\
> -		struct tracepoint_func *it_func_ptr;			\
> 		int __maybe_unused __idx = 0;				\
> 		void *__data;						\
> 									\
> @@ -190,12 +198,7 @@ static inline struct tracepoint
> *tracepoint_ptr_deref(tracepoint_ptr_t *p)
> 			rcu_irq_enter_irqson();				\
> 		}							\
> 									\
> -		it_func_ptr =						\
> -			rcu_dereference_raw((&__tracepoint_##name)->funcs); \
> -		if (it_func_ptr) {					\
> -			__data = (it_func_ptr)->data;			\
> -			__DO_TRACE_CALL(name)(args);			\
> -		}							\
> +		__DO_TRACE_CALL(name, TP_ARGS(args));			\
> 									\
> 		if (rcuidle) {						\
>  			rcu_irq_exit_irqson();				\

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] tracepoints: Do not punish non static call users
  2021-02-04 19:52 ` Mathieu Desnoyers
@ 2021-02-04 20:09   ` Steven Rostedt
  0 siblings, 0 replies; 7+ messages in thread
From: Steven Rostedt @ 2021-02-04 20:09 UTC (permalink / raw)
  To: Mathieu Desnoyers
  Cc: linux-kernel, Ingo Molnar, Andrew Morton, Peter Zijlstra

On Thu, 4 Feb 2021 14:52:51 -0500 (EST)
Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote:

> ----- On Feb 4, 2021, at 2:17 PM, rostedt rostedt@goodmis.org wrote:
> 
> > With static calls, a tracepoint can call the callback directly if there is
> > only one callback registered to that tracepoint. When there is more than
> > one, the static call will call the tracepoint's "iterator" function, which
> > needs to reload the tracepoint's "funcs" array again, as it could have
> > changed since the first time it was loaded.
> > 
> > But an arch without static calls is punished by having to load the
> > tracepoint's "funcs" array twice. Once in the DO_TRACE macro, and once
> > again in the iterator macro.  
> 
> In addition to loading it, it needs to test it against NULL twice.

True, but it needs to be tested again because it was loaded again. So I
consider the test as a result of the reload, and only indirectly of the
double call. Thus, I left it out of the change log.

> 
> > 
> > For archs without static calls, there's no reason to load the array macro
> > in the first place, since the iterator function will do it anyway.
> > 
> > Change the __DO_TRACE_CALL() macro to do the double call only for  
> 
> Do you mean "double call" or "double load and NULL check" ?

I was thinking of it as double call, as calling once to the iterator, and
once again to the functions that are loaded. But sure, because of the
double load too (and the NULL check is only because of the load ;-)

> 
> > architectures with static calls, and just call the iterator function
> > directly for architectures without static calls.
> > 
> > [ Tested only on architectures with static calls, will test on those
> >  without later ]
> > 
> > Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
> > ---
> > diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
> > index dc1d4c612cc3..966bfa6a861c 100644
> > --- a/include/linux/tracepoint.h
> > +++ b/include/linux/tracepoint.h
> > @@ -152,9 +152,18 @@ static inline struct tracepoint
> > *tracepoint_ptr_deref(tracepoint_ptr_t *p)
> > #ifdef TRACEPOINTS_ENABLED
> > 
> > #ifdef CONFIG_HAVE_STATIC_CALL
> > -#define __DO_TRACE_CALL(name)	static_call(tp_func_##name)
> > +#define __DO_TRACE_CALL(name, args)					\
> > +	do {								\
> > +		struct tracepoint_func *it_func_ptr;			\
> > +		it_func_ptr =						\
> > +			rcu_dereference_raw((&__tracepoint_##name)->funcs); \
> > +		if (it_func_ptr) {					\
> > +			__data = (it_func_ptr)->data;			\
> > +			static_call(tp_func_##name)(args);		\
> > +		}							\
> > +	} while (0)
> > #else
> > -#define __DO_TRACE_CALL(name)	__traceiter_##name
> > +#define __DO_TRACE_CALL(name, args)	__traceiter_##name(args)  
> 
> Also, we may want to comment or annotate the "void *data" argument of
> __traceiter_##_name() to state that it is unused.

Good point. (Which would have possibly been found in my more extensive
testing).

Thanks,

-- Steve

> 
> Thanks,
> 
> Mathieu
> 
> > #endif /* CONFIG_HAVE_STATIC_CALL */
> > 
> > /*
> > @@ -168,7 +177,6 @@ static inline struct tracepoint
> > *tracepoint_ptr_deref(tracepoint_ptr_t *p)
> >  */
> > #define __DO_TRACE(name, proto, args, cond, rcuidle)			\
> > 	do {								\
> > -		struct tracepoint_func *it_func_ptr;			\
> > 		int __maybe_unused __idx = 0;				\
> > 		void *__data;						\
> > 									\
> > @@ -190,12 +198,7 @@ static inline struct tracepoint
> > *tracepoint_ptr_deref(tracepoint_ptr_t *p)
> > 			rcu_irq_enter_irqson();				\
> > 		}							\
> > 									\
> > -		it_func_ptr =						\
> > -			rcu_dereference_raw((&__tracepoint_##name)->funcs); \
> > -		if (it_func_ptr) {					\
> > -			__data = (it_func_ptr)->data;			\
> > -			__DO_TRACE_CALL(name)(args);			\
> > -		}							\
> > +		__DO_TRACE_CALL(name, TP_ARGS(args));			\
> > 									\
> > 		if (rcuidle) {						\
> >  			rcu_irq_exit_irqson();				\  
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] tracepoints: Do not punish non static call users
  2021-02-04 19:17 [PATCH] tracepoints: Do not punish non static call users Steven Rostedt
@ 2021-02-05 15:57   ` kernel test robot
  2021-02-05 15:57   ` kernel test robot
  2021-02-05 21:35   ` kernel test robot
  2 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-02-05 15:57 UTC (permalink / raw)
  To: Steven Rostedt, LKML
  Cc: kbuild-all, clang-built-linux, Ingo Molnar, Andrew Morton,
	Linux Memory Management List, Peter Zijlstra, Mathieu Desnoyers

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

Hi Steven,

I love your patch! Perhaps something to improve:

[auto build test WARNING on tip/perf/core]
[also build test WARNING on linux/master linus/master v5.11-rc6 next-20210125]
[cannot apply to hnaz-linux-mm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Steven-Rostedt/tracepoints-Do-not-punish-non-static-call-users/20210205-032217
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 32451614da2a9cf4296f90d3606ac77814fb519d
config: powerpc-randconfig-r023-20210205 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://github.com/0day-ci/linux/commit/6458987cbf8a57376cd608aa4a066a2e86850cc5
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Steven-Rostedt/tracepoints-Do-not-punish-non-static-call-users/20210205-032217
        git checkout 6458987cbf8a57376cd608aa4a066a2e86850cc5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

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 >>):

   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:121:1: note: expanded from here
   __do_outl
   ^
   arch/powerpc/include/asm/io.h:537:62: note: expanded from macro '__do_outl'
   #define __do_outl(val, port)    writel(val,(PCI_IO_ADDR)_IO_BASE+port);
                                              ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:43:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:135:1: note: expanded from here
   __do_insb
   ^
   arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
   #define __do_insb(p, b, n)      readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:137:1: note: expanded from here
   __do_insw
   ^
   arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
   #define __do_insw(p, b, n)      readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:139:1: note: expanded from here
   __do_insl
   ^
   arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
   #define __do_insl(p, b, n)      readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:141:1: note: expanded from here
   __do_outsb
   ^
   arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
   #define __do_outsb(p, b, n)     writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:143:1: note: expanded from here
   __do_outsw
   ^
   arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
   #define __do_outsw(p, b, n)     writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:145:1: note: expanded from here
   __do_outsl
   ^
   arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
   #define __do_outsl(p, b, n)     writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:27:
>> drivers/mtd/devices/docg3.h:319:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(docg3_io,
   ^~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   drivers/mtd/devices/docg3.h:319:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from drivers/mtd/devices/docg3.c:27:
   In file included from drivers/mtd/devices/docg3.h:343:
   include/trace/define_trace.h:95:10: fatal error: './docg3.h' file not found
   #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
   # define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
                                  ^~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:87:34: note: expanded from macro '__TRACE_INCLUDE'
   # define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
   #define __stringify(x...)       __stringify_1(x)
                                   ^~~~~~~~~~~~~~~~
   include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
   #define __stringify_1(x...)     #x
                                   ^~
   <scratch space>:18:1: note: expanded from here
   "./docg3.h"
   ^~~~~~~~~~~
   13 warnings and 1 error generated.
--
   ^
   arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
   #define __do_insb(p, b, n)      readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:5:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:10:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:209:1: note: expanded from here
   __do_insw
   ^
   arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
   #define __do_insw(p, b, n)      readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:5:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:10:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:211:1: note: expanded from here
   __do_insl
   ^
   arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
   #define __do_insl(p, b, n)      readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:5:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:10:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:213:1: note: expanded from here
   __do_outsb
   ^
   arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
   #define __do_outsb(p, b, n)     writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:5:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:10:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:215:1: note: expanded from here
   __do_outsw
   ^
   arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
   #define __do_outsw(p, b, n)     writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:5:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:10:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:217:1: note: expanded from here
   __do_outsl
   ^
   arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
   #define __do_outsl(p, b, n)     writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:18:
>> samples/ftrace/sample-trace-array.h:60:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(sample_event,
   ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   samples/ftrace/sample-trace-array.h:60:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from samples/ftrace/sample-trace-array.c:18:
   In file included from samples/ftrace/sample-trace-array.h:84:
   include/trace/define_trace.h:95:10: fatal error: './sample-trace-array.h' file not found
   #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
   # define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
                                  ^~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:87:34: note: expanded from macro '__TRACE_INCLUDE'
   # define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
   #define __stringify(x...)       __stringify_1(x)
                                   ^~~~~~~~~~~~~~~~
   include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
   #define __stringify_1(x...)     #x
                                   ^~
   <scratch space>:165:1: note: expanded from here
   "./sample-trace-array.h"
   ^~~~~~~~~~~~~~~~~~~~~~~~
   13 warnings and 1 error generated.
..


vim +/__data +319 drivers/mtd/devices/docg3.h

efa2ca73a7bc1a Robert Jarzmik 2011-10-05  318  
efa2ca73a7bc1a Robert Jarzmik 2011-10-05 @319  TRACE_EVENT(docg3_io,
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  320  	    TP_PROTO(int op, int width, u16 reg, int val),
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  321  	    TP_ARGS(op, width, reg, val),
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  322  	    TP_STRUCT__entry(
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  323  		    __field(int, op)
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  324  		    __field(unsigned char, width)
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  325  		    __field(u16, reg)
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  326  		    __field(int, val)),
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  327  	    TP_fast_assign(
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  328  		    __entry->op = op;
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  329  		    __entry->width = width;
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  330  		    __entry->reg = reg;
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  331  		    __entry->val = val;),
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  332  	    TP_printk("docg3: %s%02d reg=%04x, val=%04x",
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  333  		      __entry->op ? "write" : "read", __entry->width,
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  334  		      __entry->reg, __entry->val)
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  335  	);
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  336  #endif
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  337  

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26991 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] tracepoints: Do not punish non static call users
@ 2021-02-05 15:57   ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-02-05 15:57 UTC (permalink / raw)
  To: kbuild-all

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

Hi Steven,

I love your patch! Perhaps something to improve:

[auto build test WARNING on tip/perf/core]
[also build test WARNING on linux/master linus/master v5.11-rc6 next-20210125]
[cannot apply to hnaz-linux-mm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Steven-Rostedt/tracepoints-Do-not-punish-non-static-call-users/20210205-032217
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 32451614da2a9cf4296f90d3606ac77814fb519d
config: powerpc-randconfig-r023-20210205 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://github.com/0day-ci/linux/commit/6458987cbf8a57376cd608aa4a066a2e86850cc5
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Steven-Rostedt/tracepoints-Do-not-punish-non-static-call-users/20210205-032217
        git checkout 6458987cbf8a57376cd608aa4a066a2e86850cc5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

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 >>):

   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:121:1: note: expanded from here
   __do_outl
   ^
   arch/powerpc/include/asm/io.h:537:62: note: expanded from macro '__do_outl'
   #define __do_outl(val, port)    writel(val,(PCI_IO_ADDR)_IO_BASE+port);
                                              ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:43:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:135:1: note: expanded from here
   __do_insb
   ^
   arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
   #define __do_insb(p, b, n)      readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:137:1: note: expanded from here
   __do_insw
   ^
   arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
   #define __do_insw(p, b, n)      readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:139:1: note: expanded from here
   __do_insl
   ^
   arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
   #define __do_insl(p, b, n)      readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:141:1: note: expanded from here
   __do_outsb
   ^
   arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
   #define __do_outsb(p, b, n)     writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:143:1: note: expanded from here
   __do_outsw
   ^
   arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
   #define __do_outsw(p, b, n)     writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:15:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:145:1: note: expanded from here
   __do_outsl
   ^
   arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
   #define __do_outsl(p, b, n)     writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from drivers/mtd/devices/docg3.c:27:
>> drivers/mtd/devices/docg3.h:319:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(docg3_io,
   ^~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   drivers/mtd/devices/docg3.h:319:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from drivers/mtd/devices/docg3.c:27:
   In file included from drivers/mtd/devices/docg3.h:343:
   include/trace/define_trace.h:95:10: fatal error: './docg3.h' file not found
   #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
   # define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
                                  ^~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:87:34: note: expanded from macro '__TRACE_INCLUDE'
   # define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
   #define __stringify(x...)       __stringify_1(x)
                                   ^~~~~~~~~~~~~~~~
   include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
   #define __stringify_1(x...)     #x
                                   ^~
   <scratch space>:18:1: note: expanded from here
   "./docg3.h"
   ^~~~~~~~~~~
   13 warnings and 1 error generated.
--
   ^
   arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
   #define __do_insb(p, b, n)      readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:5:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:10:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:209:1: note: expanded from here
   __do_insw
   ^
   arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
   #define __do_insw(p, b, n)      readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:5:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:10:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:211:1: note: expanded from here
   __do_insl
   ^
   arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
   #define __do_insl(p, b, n)      readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
                                          ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:5:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:10:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:213:1: note: expanded from here
   __do_outsb
   ^
   arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
   #define __do_outsb(p, b, n)     writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:5:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:10:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:215:1: note: expanded from here
   __do_outsw
   ^
   arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
   #define __do_outsw(p, b, n)     writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:5:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:10:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:217:1: note: expanded from here
   __do_outsl
   ^
   arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
   #define __do_outsl(p, b, n)     writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
                                           ~~~~~~~~~~~~~~~~~~~~~^
   In file included from samples/ftrace/sample-trace-array.c:18:
>> samples/ftrace/sample-trace-array.h:60:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(sample_event,
   ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   samples/ftrace/sample-trace-array.h:60:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from samples/ftrace/sample-trace-array.c:18:
   In file included from samples/ftrace/sample-trace-array.h:84:
   include/trace/define_trace.h:95:10: fatal error: './sample-trace-array.h' file not found
   #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
   # define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
                                  ^~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:87:34: note: expanded from macro '__TRACE_INCLUDE'
   # define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
   #define __stringify(x...)       __stringify_1(x)
                                   ^~~~~~~~~~~~~~~~
   include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
   #define __stringify_1(x...)     #x
                                   ^~
   <scratch space>:165:1: note: expanded from here
   "./sample-trace-array.h"
   ^~~~~~~~~~~~~~~~~~~~~~~~
   13 warnings and 1 error generated.
..


vim +/__data +319 drivers/mtd/devices/docg3.h

efa2ca73a7bc1a Robert Jarzmik 2011-10-05  318  
efa2ca73a7bc1a Robert Jarzmik 2011-10-05 @319  TRACE_EVENT(docg3_io,
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  320  	    TP_PROTO(int op, int width, u16 reg, int val),
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  321  	    TP_ARGS(op, width, reg, val),
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  322  	    TP_STRUCT__entry(
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  323  		    __field(int, op)
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  324  		    __field(unsigned char, width)
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  325  		    __field(u16, reg)
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  326  		    __field(int, val)),
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  327  	    TP_fast_assign(
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  328  		    __entry->op = op;
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  329  		    __entry->width = width;
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  330  		    __entry->reg = reg;
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  331  		    __entry->val = val;),
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  332  	    TP_printk("docg3: %s%02d reg=%04x, val=%04x",
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  333  		      __entry->op ? "write" : "read", __entry->width,
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  334  		      __entry->reg, __entry->val)
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  335  	);
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  336  #endif
efa2ca73a7bc1a Robert Jarzmik 2011-10-05  337  

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26991 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] tracepoints: Do not punish non static call users
  2021-02-04 19:17 [PATCH] tracepoints: Do not punish non static call users Steven Rostedt
@ 2021-02-05 21:35   ` kernel test robot
  2021-02-05 15:57   ` kernel test robot
  2021-02-05 21:35   ` kernel test robot
  2 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-02-05 21:35 UTC (permalink / raw)
  To: Steven Rostedt, LKML
  Cc: kbuild-all, clang-built-linux, Ingo Molnar, Andrew Morton,
	Linux Memory Management List, Peter Zijlstra, Mathieu Desnoyers

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

Hi Steven,

I love your patch! Perhaps something to improve:

[auto build test WARNING on tip/perf/core]
[also build test WARNING on linux/master linus/master v5.11-rc6 next-20210125]
[cannot apply to hnaz-linux-mm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Steven-Rostedt/tracepoints-Do-not-punish-non-static-call-users/20210205-032217
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 32451614da2a9cf4296f90d3606ac77814fb519d
config: mips-randconfig-r035-20210205 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://github.com/0day-ci/linux/commit/6458987cbf8a57376cd608aa4a066a2e86850cc5
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Steven-Rostedt/tracepoints-Do-not-punish-non-static-call-users/20210205-032217
        git checkout 6458987cbf8a57376cd608aa4a066a2e86850cc5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

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 >>):

   In file included from fs/xfs/xfs_trace.c:38:
>> fs/xfs/xfs_trace.h:95:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/xfs_trace.h:95:1: note: variable '__data' is declared here
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/xfs_trace.c:38:
>> fs/xfs/xfs_trace.h:95:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/xfs_trace.h:95:1: note: variable '__data' is declared here
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:254:2: note: expanded from macro '__DECLARE_TRACE'
           __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),          \
           ^
   include/linux/tracepoint.h:216:4: note: expanded from macro '__DECLARE_TRACE_RCU'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/xfs_trace.c:38:
   fs/xfs/xfs_trace.h:96:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf_all);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/xfs_trace.h:96:1: note: variable '__data' is declared here
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/xfs_trace.c:38:
   fs/xfs/xfs_trace.h:96:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf_all);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
--
   In file included from fs/xfs/scrub/trace.c:38:
>> fs/xfs/scrub/trace.h:122:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_SCRUB_EVENT(xchk_start);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/scrub/trace.h:122:1: note: variable '__data' is declared here
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/scrub/trace.c:38:
>> fs/xfs/scrub/trace.h:122:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_SCRUB_EVENT(xchk_start);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/scrub/trace.h:122:1: note: variable '__data' is declared here
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:254:2: note: expanded from macro '__DECLARE_TRACE'
           __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),          \
           ^
   include/linux/tracepoint.h:216:4: note: expanded from macro '__DECLARE_TRACE_RCU'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/scrub/trace.c:38:
   fs/xfs/scrub/trace.h:123:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_SCRUB_EVENT(xchk_done);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/scrub/trace.h:123:1: note: variable '__data' is declared here
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/scrub/trace.c:38:
   fs/xfs/scrub/trace.h:123:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_SCRUB_EVENT(xchk_done);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
--
   In file included from fs/nilfs2/mdt.c:24:
>> include/trace/events/nilfs2.h:25:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(nilfs2_collection_stage_transition,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   include/trace/events/nilfs2.h:25:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/nilfs2/mdt.c:24:
>> include/trace/events/nilfs2.h:25:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(nilfs2_collection_stage_transition,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   include/trace/events/nilfs2.h:25:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:254:2: note: expanded from macro '__DECLARE_TRACE'
           __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),          \
           ^
   include/linux/tracepoint.h:216:4: note: expanded from macro '__DECLARE_TRACE_RCU'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/nilfs2/mdt.c:24:
   include/trace/events/nilfs2.h:66:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(nilfs2_transaction_transition,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   include/trace/events/nilfs2.h:66:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/nilfs2/mdt.c:24:
   include/trace/events/nilfs2.h:66:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(nilfs2_transaction_transition,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   include/trace/events/nilfs2.h:66:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
..


vim +/__data +95 fs/xfs/xfs_trace.h

ea9a48881e093a fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-21   90  
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   91  #define DEFINE_ATTR_LIST_EVENT(name) \
ea9a48881e093a fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-21   92  DEFINE_EVENT(xfs_attr_list_class, name, \
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   93  	TP_PROTO(struct xfs_attr_list_context *ctx), \
ea9a48881e093a fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-21   94  	TP_ARGS(ctx))
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14  @95  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   96  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf_all);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   97  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_leaf);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   98  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_leaf_end);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   99  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_full);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14  100  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_add);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14  101  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_wrong_blk);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14  102  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_notfound);
ee73259b401317 fs/xfs/xfs_trace.h           Dave Chinner      2012-11-12  103  DEFINE_ATTR_LIST_EVENT(xfs_attr_leaf_list);
ee73259b401317 fs/xfs/xfs_trace.h           Dave Chinner      2012-11-12  104  DEFINE_ATTR_LIST_EVENT(xfs_attr_node_list);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14  105  

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30205 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] tracepoints: Do not punish non static call users
@ 2021-02-05 21:35   ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-02-05 21:35 UTC (permalink / raw)
  To: kbuild-all

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

Hi Steven,

I love your patch! Perhaps something to improve:

[auto build test WARNING on tip/perf/core]
[also build test WARNING on linux/master linus/master v5.11-rc6 next-20210125]
[cannot apply to hnaz-linux-mm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Steven-Rostedt/tracepoints-Do-not-punish-non-static-call-users/20210205-032217
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 32451614da2a9cf4296f90d3606ac77814fb519d
config: mips-randconfig-r035-20210205 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://github.com/0day-ci/linux/commit/6458987cbf8a57376cd608aa4a066a2e86850cc5
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Steven-Rostedt/tracepoints-Do-not-punish-non-static-call-users/20210205-032217
        git checkout 6458987cbf8a57376cd608aa4a066a2e86850cc5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

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 >>):

   In file included from fs/xfs/xfs_trace.c:38:
>> fs/xfs/xfs_trace.h:95:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/xfs_trace.h:95:1: note: variable '__data' is declared here
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/xfs_trace.c:38:
>> fs/xfs/xfs_trace.h:95:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/xfs_trace.h:95:1: note: variable '__data' is declared here
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:254:2: note: expanded from macro '__DECLARE_TRACE'
           __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),          \
           ^
   include/linux/tracepoint.h:216:4: note: expanded from macro '__DECLARE_TRACE_RCU'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/xfs_trace.c:38:
   fs/xfs/xfs_trace.h:96:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf_all);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/xfs_trace.h:96:1: note: variable '__data' is declared here
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/xfs_trace.c:38:
   fs/xfs/xfs_trace.h:96:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf_all);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/xfs_trace.h:91:38: note: expanded from macro 'DEFINE_ATTR_LIST_EVENT'
   #define DEFINE_ATTR_LIST_EVENT(name) \
                                        ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
--
   In file included from fs/xfs/scrub/trace.c:38:
>> fs/xfs/scrub/trace.h:122:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_SCRUB_EVENT(xchk_start);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/scrub/trace.h:122:1: note: variable '__data' is declared here
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/scrub/trace.c:38:
>> fs/xfs/scrub/trace.h:122:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_SCRUB_EVENT(xchk_start);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/scrub/trace.h:122:1: note: variable '__data' is declared here
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:254:2: note: expanded from macro '__DECLARE_TRACE'
           __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),          \
           ^
   include/linux/tracepoint.h:216:4: note: expanded from macro '__DECLARE_TRACE_RCU'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/scrub/trace.c:38:
   fs/xfs/scrub/trace.h:123:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_SCRUB_EVENT(xchk_done);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   fs/xfs/scrub/trace.h:123:1: note: variable '__data' is declared here
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/xfs/scrub/trace.c:38:
   fs/xfs/scrub/trace.h:123:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   DEFINE_SCRUB_EVENT(xchk_done);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/xfs/scrub/trace.h:116:34: note: expanded from macro 'DEFINE_SCRUB_EVENT'
   #define DEFINE_SCRUB_EVENT(name) \
                                    ^
   include/linux/tracepoint.h:539:2: note: expanded from macro '\
   DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
--
   In file included from fs/nilfs2/mdt.c:24:
>> include/trace/events/nilfs2.h:25:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(nilfs2_collection_stage_transition,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   include/trace/events/nilfs2.h:25:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/nilfs2/mdt.c:24:
>> include/trace/events/nilfs2.h:25:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(nilfs2_collection_stage_transition,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   include/trace/events/nilfs2.h:25:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:254:2: note: expanded from macro '__DECLARE_TRACE'
           __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),          \
           ^
   include/linux/tracepoint.h:216:4: note: expanded from macro '__DECLARE_TRACE_RCU'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/nilfs2/mdt.c:24:
   include/trace/events/nilfs2.h:66:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(nilfs2_transaction_transition,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   include/trace/events/nilfs2.h:66:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:414:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:244:4: note: expanded from macro '__DECLARE_TRACE'
                           __DO_TRACE(name,                                \
                           ^
   include/linux/tracepoint.h:181:3: note: expanded from macro '__DO_TRACE'
                   void *__data;                                           \
                   ^
   In file included from fs/nilfs2/mdt.c:24:
   include/trace/events/nilfs2.h:66:1: warning: variable '__data' is uninitialized when used here [-Wuninitialized]
   TRACE_EVENT(nilfs2_transaction_transition,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:417:11: note: expanded from macro 'DECLARE_TRACE'
                           PARAMS(__data, args))
                                  ^~~~~~
   include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
   #define PARAMS(args...) args
                           ^~~~
   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/tracepoint.h:201:33: note: expanded from macro '__DO_TRACE'
                   __DO_TRACE_CALL(name, TP_ARGS(args));                   \
                                                 ^~~~
   include/linux/tracepoint.h:138:26: note: expanded from macro 'TP_ARGS'
   #define TP_ARGS(args...)        args
                                   ^~~~
   include/linux/tracepoint.h:166:56: note: expanded from macro '__DO_TRACE_CALL'
   #define __DO_TRACE_CALL(name, args)     __traceiter_##name(args)
                                                              ^~~~
   include/trace/events/nilfs2.h:66:1: note: variable '__data' is declared here
   include/linux/tracepoint.h:550:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
..


vim +/__data +95 fs/xfs/xfs_trace.h

ea9a48881e093a fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-21   90  
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   91  #define DEFINE_ATTR_LIST_EVENT(name) \
ea9a48881e093a fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-21   92  DEFINE_EVENT(xfs_attr_list_class, name, \
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   93  	TP_PROTO(struct xfs_attr_list_context *ctx), \
ea9a48881e093a fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-21   94  	TP_ARGS(ctx))
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14  @95  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   96  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf_all);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   97  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_leaf);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   98  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_leaf_end);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14   99  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_full);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14  100  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_add);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14  101  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_wrong_blk);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14  102  DEFINE_ATTR_LIST_EVENT(xfs_attr_list_notfound);
ee73259b401317 fs/xfs/xfs_trace.h           Dave Chinner      2012-11-12  103  DEFINE_ATTR_LIST_EVENT(xfs_attr_leaf_list);
ee73259b401317 fs/xfs/xfs_trace.h           Dave Chinner      2012-11-12  104  DEFINE_ATTR_LIST_EVENT(xfs_attr_node_list);
0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.h Christoph Hellwig 2009-12-14  105  

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30205 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-05 23:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 19:17 [PATCH] tracepoints: Do not punish non static call users Steven Rostedt
2021-02-04 19:52 ` Mathieu Desnoyers
2021-02-04 20:09   ` Steven Rostedt
2021-02-05 15:57 ` kernel test robot
2021-02-05 15:57   ` kernel test robot
2021-02-05 21:35 ` kernel test robot
2021-02-05 21:35   ` 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.