# Re: \[PATCH 1/2\] tracing: Move non-trace\_printk prototypes back to kernel.h

- From: Steven Rostedt \<rostedt@goodmis.org\>
- Date: 2026-06-21 14:22:05 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/06/17158373
- Thread: https://ratatoskr.run/linux-trace-kernel/2026/06/17158123/t.md

```text


On June 21, 2026 2:08:37 PM GMT+01:00, Yury Norov [ref] wrote:
>On Sun, Jun 21, 2026 at 05:34:31AM -0400, Steven Rostedt wrote:
>> From: Steven Rostedt <rostedt@goodmis.org>
>> 
>> In order to remove the include to trace_printk.h from kernel.h the tracing
>> control prototypes need to be moved back into kernel.h. That's because
>
>Please don't. Instead, you can split them out to trace_control.h, and
>include where needed. I actually have a prototype for it, FYI:
>
>https://github.com/norov/linux/tree/trace_pritk3
>

Sure, I have no problem adding another header for this.

>> they are used in other common header files like rcu.h. There's no point in
>> removing trace_printk.h from kernel.h if it just gets added back to other
>> common headers.
>> 
>> Prototypes are very cheap for the compiler and should not be an issue.
>
>It's not about cost, it's about mess. kernel.h is included everywhere.
>Is that API needed everywhere? No, it's needed in literally 10 files.
>So, no place in kernel.h.
> 

Well one of those files is rcu.h which is also pretty much included everywhere. But OK.

-- Steve 


>> 
>> 2.53.0
>> 

```
