Re: [PATCH] ftrace: don't call kaslr_offset()
From: Steven Rostedt
Date: Tue Feb 25 2025 - 13:31:36 EST
On Tue, 25 Feb 2025 10:00:58 +0100
Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> The kaslr_offset() function is only defined on architectures
> that implement CONFIG_RANDOMIZE_BASE, which leads to a
> build failure on 32-bit arm and likely others.
>
> Hide the function call behind an #ifdef.
>
> Fixes: ef378c3b8233 ("scripts/sorttable: Zero out weak functions in mcount_loc table")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
> There is probably a nicer way to do this, this version was the
> minimum fix I found to unbreak the build.
Yep, I ended up removing the reference to kasrl_offset() altogether.
You are Cc'd on the new patch set.
Thanks,
-- Steve
> ---
> kernel/trace/ftrace.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)