unify {de,}mangle_poll(), get rid of kernel-side POLL...
[cris-mirror.git] / include / linux / error-injection.h
blob280c61ecbf20552b3fa68a99150b55e52c524905
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_ERROR_INJECTION_H
3 #define _LINUX_ERROR_INJECTION_H
5 #ifdef CONFIG_FUNCTION_ERROR_INJECTION
7 #include <asm/error-injection.h>
9 extern bool within_error_injection_list(unsigned long addr);
10 extern int get_injectable_error_type(unsigned long addr);
12 #else /* !CONFIG_FUNCTION_ERROR_INJECTION */
14 #include <asm-generic/error-injection.h>
15 static inline bool within_error_injection_list(unsigned long addr)
17 return false;
20 static inline int get_injectable_error_type(unsigned long addr)
22 return EI_ETYPE_NONE;
25 #endif
27 #endif /* _LINUX_ERROR_INJECTION_H */