summaryrefslogtreecommitdiffstats
path: root/include/linux/ubsan.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ubsan.h')
-rw-r--r--include/linux/ubsan.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/ubsan.h b/include/linux/ubsan.h
new file mode 100644
index 000000000..bff744549
--- /dev/null
+++ b/include/linux/ubsan.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_UBSAN_H
+#define _LINUX_UBSAN_H
+
+#ifdef CONFIG_UBSAN_TRAP
+const char *report_ubsan_failure(struct pt_regs *regs, u32 check_type);
+#endif
+
+#endif