drm/panel-edp: Add STA 116QHD024002
[drm/drm-misc.git] / include / linux / fault-inject-usercopy.h
blob56c3a693fdd928ea7a6bbe8cbfd3c85bbdba7cb7
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_FAULT_INJECT_USERCOPY_H__
3 #define __LINUX_FAULT_INJECT_USERCOPY_H__
5 /*
6 * This header provides a wrapper for injecting failures to user space memory
7 * access functions.
8 */
10 #include <linux/types.h>
12 #ifdef CONFIG_FAULT_INJECTION_USERCOPY
14 bool should_fail_usercopy(void);
16 #else
18 static inline bool should_fail_usercopy(void) { return false; }
20 #endif /* CONFIG_FAULT_INJECTION_USERCOPY */
22 #endif /* __LINUX_FAULT_INJECT_USERCOPY_H__ */