]> Git Repo - J-linux.git/blob - drivers/ufs/core/ufs-fault-injection.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / drivers / ufs / core / ufs-fault-injection.h
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 */
This page took 0.026546 seconds and 4 git commands to generate.