1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_FAULT_INJECT_USERCOPY_H__
3 #define __LINUX_FAULT_INJECT_USERCOPY_H__
6 * This header provides a wrapper for injecting failures to user space memory
10 #include <linux/types.h>
12 #ifdef CONFIG_FAULT_INJECTION_USERCOPY
14 bool should_fail_usercopy(void);
18 static inline bool should_fail_usercopy(void) { return false; }
20 #endif /* CONFIG_FAULT_INJECTION_USERCOPY */
22 #endif /* __LINUX_FAULT_INJECT_USERCOPY_H__ */