Re: [PATCH] tracing: Fix warning on variable 'struct trace_array'
From: Steven Rostedt
Date: Wed Nov 16 2022 - 21:53:40 EST
On Mon, 7 Nov 2022 21:35:56 +0530
Aashish Sharma <shraash@xxxxxxxxxx> wrote:
> 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
>
> Fixes: 1a77dd1c2bb5 ("scsi: tracing: Fix compile error in trace_array calls when TRACING is disabled")
> Cc: Arun Easi <aeasi@xxxxxxxxxxx>
> Signed-off-by: Aashish Sharma <shraash@xxxxxxxxxx>
>
Queued. Thanks Aashish!
-- Steve