xref: /linux/drivers/ufs/core/ufs-fault-injection.h (revision dec1c62e91ba268ab2a6e339d4d7a59287d5eba1)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef _UFS_FAULT_INJECTION_H
4 #define _UFS_FAULT_INJECTION_H
5 
6 #include <linux/kconfig.h>
7 #include <linux/types.h>
8 
9 #ifdef CONFIG_SCSI_UFS_FAULT_INJECTION
10 bool ufs_trigger_eh(void);
11 bool ufs_fail_completion(void);
12 #else
13 static inline bool ufs_trigger_eh(void)
14 {
15 	return false;
16 }
17 
18 static inline bool ufs_fail_completion(void)
19 {
20 	return false;
21 }
22 #endif
23 
24 #endif /* _UFS_FAULT_INJECTION_H */
25