Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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