]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
unwind_user/x86: Fix arch=um build
authorPeter Zijlstra <peterz@infradead.org>
Wed, 29 Oct 2025 13:24:57 +0000 (14:24 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 30 Oct 2025 08:43:14 +0000 (09:43 +0100)
Add CONFIG_HAVE_UNWIND_USER_FP guards to make sure this code
doesn't break arch=um builds.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Closes: https://lore.kernel.org/oe-kbuild-all/202510291919.FFGyU7nq-lkp@intel.com/
arch/x86/include/asm/unwind_user.h

index c4f1ff8874d67439060020f5a5fd1311e4961a38..12064284bc4e538a69b66c7c475df4ed19613ac9 100644 (file)
@@ -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 */