Skip to content

Commit

Permalink
ring-buffer: Remove the unused variable bmeta
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiapeng Chong authored and Steven Rostedt (Google) committed Mar 28, 2025
1 parent 486fbcb commit de48d7f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down

0 comments on commit de48d7f

Please sign in to comment.