From: Peter Zijlstra Date: Wed, 29 Oct 2025 13:24:57 +0000 (+0100) Subject: unwind_user/x86: Fix arch=um build X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa7387e79a5cff0585cd1b9091944142a06872b6;p=thirdparty%2Flinux.git 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 Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Closes: https://lore.kernel.org/oe-kbuild-all/202510291919.FFGyU7nq-lkp@intel.com/ --- diff --git a/arch/x86/include/asm/unwind_user.h b/arch/x86/include/asm/unwind_user.h index c4f1ff8874d67..12064284bc4e5 100644 --- a/arch/x86/include/asm/unwind_user.h +++ b/arch/x86/include/asm/unwind_user.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_UNWIND_USER_H #define _ASM_X86_UNWIND_USER_H +#ifdef CONFIG_HAVE_UNWIND_USER_FP + #include #include @@ -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 */