Files
twx-linux/include/linux
Aashish Sharma 2aaab8dcf0 tracing: Fix warning on variable 'struct trace_array'
[ Upstream commit bedf06833b ]

Move the declaration of 'struct trace_array' out of #ifdef
CONFIG_TRACING block, to fix the following warning when CONFIG_TRACING
is not set:

>> include/linux/trace.h:63:45: warning: 'struct trace_array' declared
inside parameter list will not be visible outside of this definition or
declaration

Link: https://lkml.kernel.org/r/20221107160556.2139463-1-shraash@google.com

Fixes: 1a77dd1c2b ("scsi: tracing: Fix compile error in trace_array calls when TRACING is disabled")
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Arun Easi <aeasi@marvell.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Aashish Sharma <shraash@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-26 09:27:53 +01:00
..
2022-11-16 10:04:12 +01:00
2022-10-21 12:38:47 +02:00
2022-08-31 14:57:28 +01:00
2022-10-21 12:39:00 +02:00
2022-08-28 14:02:44 -07:00
2022-11-04 00:00:27 +09:00
2022-09-01 11:42:12 +01:00