Re: [PATCH v3 2/2] tracing: Remove trace_printk.h from kernel.h
From: David Laight
Date: Wed Jun 24 2026 - 06:11:58 EST
On Wed, 24 Jun 2026 04:18:08 -0400
Steven Rostedt <rostedt@xxxxxxxxxx> wrote:
> From: Steven Rostedt <rostedt@xxxxxxxxxxx>
>
> There have been complaints about trace_printk.h causing more build time
> for being in kernel.h. Move it out of kernel.h and place it in the headers
> and C files that use it.
>
> Link: https://lore.kernel.org/all/CAHk-=wikCBeVFjVXiY4o-oepdbjAoir5+TcAgtL12c4u1TpZLQ@xxxxxxxxxxxxxx/
That is all about changes to the file causing everything to be rebuilt,
not the contents of the file slowing down builds.
The two are different.
The part you are moving out of normal builds is just a few #defines.
They won't have a significant effect on build times either.
So there is no point splitting out trace_controls.h.
David