summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-09-17 13:17:27 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2024-09-17 13:17:27 +0200
commitdea435d397ab90d8e682e4162a5b9835d24b1e3a (patch)
tree4d39ab076a3fbc09709b170db8ac6439b4fa4293 /include/linux
parent61d1ea914b3556c44f9ca04277ab990a60afb44d (diff)
parent7424fc6b86c8980a87169e005f5cd4438d18efe6 (diff)
Merge tag 'x86-core-2024-09-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 core update from Thomas Gleixner: "Enable UBSAN traps for x86, which provides better reporting through metadata encodeded into UD1" * tag 'x86-core-2024-09-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/traps: Enable UBSAN traps on x86
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ubsan.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ubsan.h b/include/linux/ubsan.h
index bff7445498de..d8219cbe09ff 100644
--- a/include/linux/ubsan.h
+++ b/include/linux/ubsan.h
@@ -4,6 +4,11 @@
#ifdef CONFIG_UBSAN_TRAP
const char *report_ubsan_failure(struct pt_regs *regs, u32 check_type);
+#else
+static inline const char *report_ubsan_failure(struct pt_regs *regs, u32 check_type)
+{
+ return NULL;
+}
#endif
#endif