diff options
Diffstat (limited to 'include/linux/ubsan.h')
-rw-r--r-- | include/linux/ubsan.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/ubsan.h b/include/linux/ubsan.h index bff7445498de..3ab8d38aedb8 100644 --- a/include/linux/ubsan.h +++ b/include/linux/ubsan.h @@ -2,8 +2,13 @@ #ifndef _LINUX_UBSAN_H #define _LINUX_UBSAN_H -#ifdef CONFIG_UBSAN_TRAP -const char *report_ubsan_failure(struct pt_regs *regs, u32 check_type); +#if defined(CONFIG_UBSAN_TRAP) || defined(CONFIG_UBSAN_KVM_EL2) +const char *report_ubsan_failure(u32 check_type); +#else +static inline const char *report_ubsan_failure(u32 check_type) +{ + return NULL; +} #endif #endif |