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>
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;
if (rb_meta_init(buffer, scratch_size))
valid = true;
- bmeta = buffer->meta;
-
for (cpu = 0; cpu < nr_cpu_ids; cpu++) {
void *next_meta;