Skip to contentSkip to conversation

unwind_user/x86: Fix arch=um build

tip: perf/core tip-bot2 for Peter Zijlstra 1 participant 1 message Oct 30, 2025

Subsystems (2)
lore
Share & tools
lore

tip-bot2 for Peter Zijlstra

author merge bot Applied
#0 lore raw

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.

---
 arch/x86/include/asm/unwind_user.h | 4 ++++
 1 file changed, 4 insertions(+)
arch/x86/include/asm/unwind_user.h +4 -0
index c4f1ff8..1206428 100644
@@ -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 */