summaryrefslogtreecommitdiff
path: root/include/linux/ubsan.h
blob: 3ab8d38aedb8d3a3bb8f9bd388bd052f68d766df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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