1
2
3
4
5
6
7#ifndef __ASM_ARC_ASSERTS_H
8#define __ASM_ARC_ASSERTS_H
9
10
11
12void chk_opt_strict(char *opt_name, bool hw_exists, bool opt_ena);
13void chk_opt_weak(char *opt_name, bool hw_exists, bool opt_ena);
14
15
16
17
18
19
20#define CHK_OPT_STRICT(opt_name, hw_exists) \
21({ \
22 chk_opt_strict(#opt_name, hw_exists, IS_ENABLED(opt_name)); \
23})
24
25
26
27
28
29#define CHK_OPT_WEAK(opt_name, hw_exists) \
30({ \
31 chk_opt_weak(#opt_name, hw_exists, IS_ENABLED(opt_name)); \
32})
33
34#endif
35