xref: /linux/include/linux/ubsan.h (revision 0ce92d548b44649a8de706f9bb9e74a4ed2f18a7)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_UBSAN_H
3 #define _LINUX_UBSAN_H
4 
5 #if defined(CONFIG_UBSAN_TRAP) || defined(CONFIG_UBSAN_KVM_EL2)
6 const char *report_ubsan_failure(u32 check_type);
7 #else
8 static inline const char *report_ubsan_failure(u32 check_type)
9 {
10 	return NULL;
11 }
12 #endif
13 
14 #endif
15