mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 17:57:38 -04:00
ring-buffer: Remove the unused variable bmeta
Variable bmeta is not effectively used, so delete it. kernel/trace/ring_buffer.c:1952:27: warning: variable ‘bmeta’ set but not used. Link: https://lore.kernel.org/20250317015524.3902-1-jiapeng.chong@linux.alibaba.com Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=19524 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
committed by
Steven Rostedt (Google)
parent
486fbcb380
commit
de48d7fff7
@@ -1949,7 +1949,6 @@ static void rb_meta_validate_events(struct ring_buffer_per_cpu *cpu_buffer)
|
||||
static void rb_range_meta_init(struct trace_buffer *buffer, int nr_pages, int scratch_size)
|
||||
{
|
||||
struct ring_buffer_cpu_meta *meta;
|
||||
struct ring_buffer_meta *bmeta;
|
||||
unsigned long *subbuf_mask;
|
||||
unsigned long delta;
|
||||
void *subbuf;
|
||||
@@ -1964,8 +1963,6 @@ static void rb_range_meta_init(struct trace_buffer *buffer, int nr_pages, int sc
|
||||
if (rb_meta_init(buffer, scratch_size))
|
||||
valid = true;
|
||||
|
||||
bmeta = buffer->meta;
|
||||
|
||||
for (cpu = 0; cpu < nr_cpu_ids; cpu++) {
|
||||
void *next_meta;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user