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 void ufs_fault_inject_hba_init(struct ufs_hba *hba); 11 bool ufs_trigger_eh(struct ufs_hba *hba); 12 bool ufs_fail_completion(struct ufs_hba *hba); 13 #else 14 static inline void ufs_fault_inject_hba_init(struct ufs_hba *hba) 15 { 16 } 17 18 static inline bool ufs_trigger_eh(struct ufs_hba *hba) 19 { 20 return false; 21 } 22 23 static inline bool ufs_fail_completion(struct ufs_hba *hba) 24 { 25 return false; 26 } 27 #endif 28 29 #endif /* _UFS_FAULT_INJECTION_H */ 30