2023-02-02 22:07:49 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _LINUX_UBSAN_H
|
|
|
|
#define _LINUX_UBSAN_H
|
|
|
|
|
2025-04-30 16:27:10 +00:00
|
|
|
#if defined(CONFIG_UBSAN_TRAP) || defined(CONFIG_UBSAN_KVM_EL2)
|
2025-04-30 16:27:09 +00:00
|
|
|
const char *report_ubsan_failure(u32 check_type);
|
2024-07-24 00:01:55 +00:00
|
|
|
#else
|
2025-04-30 16:27:09 +00:00
|
|
|
static inline const char *report_ubsan_failure(u32 check_type)
|
2024-07-24 00:01:55 +00:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
2023-02-02 22:07:49 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|