| .. | .. |
|---|
| 2 | 2 | #ifndef _LINUX_ERROR_INJECTION_H |
|---|
| 3 | 3 | #define _LINUX_ERROR_INJECTION_H |
|---|
| 4 | 4 | |
|---|
| 5 | | -#ifdef CONFIG_FUNCTION_ERROR_INJECTION |
|---|
| 5 | +#include <linux/compiler.h> |
|---|
| 6 | +#include <asm-generic/error-injection.h> |
|---|
| 6 | 7 | |
|---|
| 7 | | -#include <asm/error-injection.h> |
|---|
| 8 | +#ifdef CONFIG_FUNCTION_ERROR_INJECTION |
|---|
| 8 | 9 | |
|---|
| 9 | 10 | extern bool within_error_injection_list(unsigned long addr); |
|---|
| 10 | 11 | extern int get_injectable_error_type(unsigned long addr); |
|---|
| 11 | 12 | |
|---|
| 12 | 13 | #else /* !CONFIG_FUNCTION_ERROR_INJECTION */ |
|---|
| 13 | 14 | |
|---|
| 14 | | -#include <asm-generic/error-injection.h> |
|---|
| 15 | 15 | static inline bool within_error_injection_list(unsigned long addr) |
|---|
| 16 | 16 | { |
|---|
| 17 | 17 | return false; |
|---|