mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
607 B
27 lines
607 B
/* SPDX-License-Identifier: GPL-2.0 */ |
|
#ifndef _LINUX_ERROR_INJECTION_H |
|
#define _LINUX_ERROR_INJECTION_H |
|
|
|
#include <linux/compiler.h> |
|
#include <asm-generic/error-injection.h> |
|
|
|
#ifdef CONFIG_FUNCTION_ERROR_INJECTION |
|
|
|
extern bool within_error_injection_list(unsigned long addr); |
|
extern int get_injectable_error_type(unsigned long addr); |
|
|
|
#else /* !CONFIG_FUNCTION_ERROR_INJECTION */ |
|
|
|
static inline bool within_error_injection_list(unsigned long addr) |
|
{ |
|
return false; |
|
} |
|
|
|
static inline int get_injectable_error_type(unsigned long addr) |
|
{ |
|
return EI_ETYPE_NONE; |
|
} |
|
|
|
#endif |
|
|
|
#endif /* _LINUX_ERROR_INJECTION_H */
|
|
|