Linux-6.18.2/include/linux/ubsan.h
2025-12-23 20:06:59 +08:00

15 lines
302 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_UBSAN_H
#define _LINUX_UBSAN_H
#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