printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / error-injection.h
blob20e738f4eae8ae614dd9e1ba1c3d08904689763f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_ERROR_INJECTION_H
3 #define _LINUX_ERROR_INJECTION_H
5 #include <linux/compiler.h>
6 #include <linux/errno.h>
7 #include <asm-generic/error-injection.h>
9 #ifdef CONFIG_FUNCTION_ERROR_INJECTION
11 extern bool within_error_injection_list(unsigned long addr);
12 extern int get_injectable_error_type(unsigned long addr);
14 #else /* !CONFIG_FUNCTION_ERROR_INJECTION */
16 static inline bool within_error_injection_list(unsigned long addr)
18 return false;
21 static inline int get_injectable_error_type(unsigned long addr)
23 return -EOPNOTSUPP;
26 #endif
28 #endif /* _LINUX_ERROR_INJECTION_H */