Messages in this thread | | | From | Cong Wang <> | Date | Sat, 7 Dec 2019 11:02:13 -0800 | Subject | Re: [PATCH -next] tracing: remove set but not used variable 'buffer' |
| |
On Fri, Dec 6, 2019 at 7:46 PM YueHaibing <yuehaibing@huawei.com> 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@huawei.com> > Signed-off-by: YueHaibing <yuehaibing@huawei.com>
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@gmail.com>
Thanks.
| |