clk: samsung: dt-bindings: Add ADC clock ID to Exynos5410
[linux/fpc-iii.git] / include / asm-generic / error-injection.h
blob95a159a4137fb645f3fbe0ed5e4278d55ad58fd2
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_GENERIC_ERROR_INJECTION_H
3 #define _ASM_GENERIC_ERROR_INJECTION_H
5 #if defined(__KERNEL__) && !defined(__ASSEMBLY__)
6 enum {
7 EI_ETYPE_NONE, /* Dummy value for undefined case */
8 EI_ETYPE_NULL, /* Return NULL if failure */
9 EI_ETYPE_ERRNO, /* Return -ERRNO if failure */
10 EI_ETYPE_ERRNO_NULL, /* Return -ERRNO or NULL if failure */
11 EI_ETYPE_TRUE, /* Return true if failure */
14 struct error_injection_entry {
15 unsigned long addr;
16 int etype;
19 #ifdef CONFIG_FUNCTION_ERROR_INJECTION
21 * Whitelist ganerating macro. Specify functions which can be
22 * error-injectable using this macro.
24 #define ALLOW_ERROR_INJECTION(fname, _etype) \
25 static struct error_injection_entry __used \
26 __attribute__((__section__("_error_injection_whitelist"))) \
27 _eil_addr_##fname = { \
28 .addr = (unsigned long)fname, \
29 .etype = EI_ETYPE_##_etype, \
31 #else
32 #define ALLOW_ERROR_INJECTION(fname, _etype)
33 #endif
34 #endif
36 #endif /* _ASM_GENERIC_ERROR_INJECTION_H */