Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / ufs / core / ufs-fault-injection.h
blob996a35769781896d0915add48e5650626d1297ca
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef _UFS_FAULT_INJECTION_H
4 #define _UFS_FAULT_INJECTION_H
6 #include <linux/kconfig.h>
7 #include <linux/types.h>
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)
18 static inline bool ufs_trigger_eh(struct ufs_hba *hba)
20 return false;
23 static inline bool ufs_fail_completion(struct ufs_hba *hba)
25 return false;
27 #endif
29 #endif /* _UFS_FAULT_INJECTION_H */