unwind_user/x86: Fix arch=um build
Subsystems (2)
The following commit has been merged into the perf/core branch of tip:
Commit-ID: aa7387e79a5cff0585cd1b9091944142a06872b6 Gitweb: https://git.kernel.org/tip/aa7387e79a5cff0585cd1b9091944142a06872b6 Author: Peter Zijlstra <[email protected]> AuthorDate: Wed, 29 Oct 2025 14:24:57 +01:00 Committer: Ingo Molnar <[email protected]> CommitterDate: Thu, 30 Oct 2025 09:43:14 +01:00
unwind_user/x86: Fix arch=um build
Add CONFIG_HAVE_UNWIND_USER_FP guards to make sure this code doesn't break arch=um builds.
Reported-by kernel test robot <[email protected]>
Signed-off-by Peter Zijlstra (Intel) <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/include/asm/unwind_user.h | 4 ++++ 1 file changed, 4 insertions(+)
arch/x86/include/asm/unwind_user.h +4 -0
@@ -2,6 +2,8 @@#ifndef _ASM_X86_UNWIND_USER_H#define _ASM_X86_UNWIND_USER_H +#ifdef CONFIG_HAVE_UNWIND_USER_FP +#include <asm/ptrace.h> #include <asm/uprobes.h>
@@ -34,4 +36,6 @@ static inline bool unwind_user_at_function_start(struct pt_regs *regs)return is_uprobe_at_func_entry (regs); } +#endif /* CONFIG_HAVE_UNWIND_USER_FP */ +#endif /* _ASM_X86_UNWIND_USER_H */