Re: [PATCH] ftrace: x86: Fix a compile error about get_kernel_nofault()

From: Google
Date: Wed Feb 12 2025 - 19:03:54 EST


On Tue, 11 Feb 2025 10:50:02 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Tue, 11 Feb 2025 11:09:14 +0100
> Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> > I was aiming my patch for x86/core, but if there's a reason to expedite
> > them, I can stick it in x86/urgent I suppose.
> >
> > Just need a reason -- what's this compile error nonsense about, my
> > kernels build just fine?
>
> Masami,
>
> Do you have a config that fails to build without this fix? If so, can you
> please reply with it, and then this can go in as a quick fix.

Let me share the config. But as Sami pointed, the combination of
CONFIG_GENDWARFKSYMS and CONFIG_FUNCTION_TRACER caused this issue.

Thank you,

>
> Thanks,
>
> -- Steve


--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>

Attachment: build-error.kconfig
Description: Binary data