1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_ERROR_INJECTION_H
3 #define _LINUX_ERROR_INJECTION_H
4 
5 #ifdef CONFIG_FUNCTION_ERROR_INJECTION
6 
7 #include <asm/error-injection.h>
8 
9 extern bool within_error_injection_list(unsigned long addr);
10 
11 #else /* !CONFIG_FUNCTION_ERROR_INJECTION */
12 
13 #include <asm-generic/error-injection.h>
14 static inline bool within_error_injection_list(unsigned long addr)
15 {
16 	return false;
17 }
18 
19 #endif
20 
21 #endif /* _LINUX_ERROR_INJECTION_H */
22