1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_ERROR_INJECTION_H
3 #define _LINUX_ERROR_INJECTION_H
5 #include <linux/compiler.h>
6 #include <asm-generic/error-injection.h>
8 #ifdef CONFIG_FUNCTION_ERROR_INJECTION
10 extern bool within_error_injection_list(unsigned long addr);
11 extern int get_injectable_error_type(unsigned long addr);
13 #else /* !CONFIG_FUNCTION_ERROR_INJECTION */
15 static inline bool within_error_injection_list(unsigned long addr)
20 static inline int get_injectable_error_type(unsigned long addr)
27 #endif /* _LINUX_ERROR_INJECTION_H */