Re: [PATCH -next] tracing: remove set but not used variable 'buffer'
From: Cong Wang
Date: Sat Dec 07 2019 - 14:02:27 EST
On Fri, Dec 6, 2019 at 7:46 PM YueHaibing <yuehaibing@xxxxxxxxxx> wrote:
>
> kernel/trace/trace_events_inject.c: In function trace_inject_entry:
> kernel/trace/trace_events_inject.c:20:22: warning: variable buffer set but not used [-Wunused-but-set-variable]
>
> It is never used, so remove it.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
Right, this should be a leftover after I removed ring_buffer_nest_start().
And my compiler failed to catch this.
Acked-by: Cong Wang <xiyou.wangcong@xxxxxxxxx>
Thanks.