hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/include/linux/error-injection.h
....@@ -2,16 +2,16 @@
22 #ifndef _LINUX_ERROR_INJECTION_H
33 #define _LINUX_ERROR_INJECTION_H
44
5
-#ifdef CONFIG_FUNCTION_ERROR_INJECTION
5
+#include <linux/compiler.h>
6
+#include <asm-generic/error-injection.h>
67
7
-#include <asm/error-injection.h>
8
+#ifdef CONFIG_FUNCTION_ERROR_INJECTION
89
910 extern bool within_error_injection_list(unsigned long addr);
1011 extern int get_injectable_error_type(unsigned long addr);
1112
1213 #else /* !CONFIG_FUNCTION_ERROR_INJECTION */
1314
14
-#include <asm-generic/error-injection.h>
1515 static inline bool within_error_injection_list(unsigned long addr)
1616 {
1717 return false;