Blame view
include/linux/error-injection.h
607 Bytes
540adea38 error-injection: ... |
1 2 3 |
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_ERROR_INJECTION_H #define _LINUX_ERROR_INJECTION_H |
45880f7b7 error-injection: ... |
4 5 |
#include <linux/compiler.h> #include <asm-generic/error-injection.h> |
540adea38 error-injection: ... |
6 |
|
45880f7b7 error-injection: ... |
7 |
#ifdef CONFIG_FUNCTION_ERROR_INJECTION |
540adea38 error-injection: ... |
8 9 |
extern bool within_error_injection_list(unsigned long addr); |
663faf9f7 error-injection: ... |
10 |
extern int get_injectable_error_type(unsigned long addr); |
540adea38 error-injection: ... |
11 12 |
#else /* !CONFIG_FUNCTION_ERROR_INJECTION */ |
540adea38 error-injection: ... |
13 14 15 16 |
static inline bool within_error_injection_list(unsigned long addr) { return false; } |
663faf9f7 error-injection: ... |
17 18 19 20 |
static inline int get_injectable_error_type(unsigned long addr) { return EI_ETYPE_NONE; } |
540adea38 error-injection: ... |
21 22 23 |
#endif #endif /* _LINUX_ERROR_INJECTION_H */ |