Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tracing/mmiotrace: Remove reference to unused per CPU data pointer

The mmiotracer referenced the per CPU array_buffer->data descriptor but
never actually used it. Remove the references to it.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/20250505212234.696945463@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

+2 -10
+2 -10
kernel/trace/trace_mmiotrace.c
··· 291 291 device_initcall(init_mmio_trace); 292 292 293 293 static void __trace_mmiotrace_rw(struct trace_array *tr, 294 - struct trace_array_cpu *data, 295 294 struct mmiotrace_rw *rw) 296 295 { 297 296 struct trace_buffer *buffer = tr->array_buffer.buffer; ··· 314 315 void mmio_trace_rw(struct mmiotrace_rw *rw) 315 316 { 316 317 struct trace_array *tr = mmio_trace_array; 317 - struct trace_array_cpu *data = per_cpu_ptr(tr->array_buffer.data, smp_processor_id()); 318 - __trace_mmiotrace_rw(tr, data, rw); 318 + __trace_mmiotrace_rw(tr, rw); 319 319 } 320 320 321 321 static void __trace_mmiotrace_map(struct trace_array *tr, 322 - struct trace_array_cpu *data, 323 322 struct mmiotrace_map *map) 324 323 { 325 324 struct trace_buffer *buffer = tr->array_buffer.buffer; ··· 341 344 void mmio_trace_mapping(struct mmiotrace_map *map) 342 345 { 343 346 struct trace_array *tr = mmio_trace_array; 344 - struct trace_array_cpu *data; 345 - 346 - preempt_disable(); 347 - data = per_cpu_ptr(tr->array_buffer.data, smp_processor_id()); 348 - __trace_mmiotrace_map(tr, data, map); 349 - preempt_enable(); 347 + __trace_mmiotrace_map(tr, map); 350 348 } 351 349 352 350 int mmio_trace_printk(const char *fmt, va_list args)