xref: /linux/include/linux/ubsan.h (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
125b84002SKees Cook /* SPDX-License-Identifier: GPL-2.0 */
225b84002SKees Cook #ifndef _LINUX_UBSAN_H
325b84002SKees Cook #define _LINUX_UBSAN_H
425b84002SKees Cook 
525b84002SKees Cook #ifdef CONFIG_UBSAN_TRAP
625b84002SKees Cook const char *report_ubsan_failure(struct pt_regs *regs, u32 check_type);
7*7424fc6bSGatlin Newhouse #else
report_ubsan_failure(struct pt_regs * regs,u32 check_type)8*7424fc6bSGatlin Newhouse static inline const char *report_ubsan_failure(struct pt_regs *regs, u32 check_type)
9*7424fc6bSGatlin Newhouse {
10*7424fc6bSGatlin Newhouse 	return NULL;
11*7424fc6bSGatlin Newhouse }
1225b84002SKees Cook #endif
1325b84002SKees Cook 
1425b84002SKees Cook #endif
15