ARC: boot log: move helper macros to header for reuse
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
@@ -33,4 +33,11 @@ extern int root_mountflags, end_mem;
|
||||
void setup_processor(void);
|
||||
void __init setup_arch_memory(void);
|
||||
|
||||
/* Helpers used in arc_*_mumbojumbo routines */
|
||||
#define IS_AVAIL1(v, s) ((v) ? s : "")
|
||||
#define IS_DISABLED_RUN(v) ((v) ? "" : "(disabled) ")
|
||||
#define IS_USED_RUN(v) ((v) ? "" : "(not used) ")
|
||||
#define IS_USED_CFG(cfg) IS_USED_RUN(IS_ENABLED(cfg))
|
||||
#define IS_AVAIL2(v, s, cfg) IS_AVAIL1(v, s), IS_AVAIL1(v, IS_USED_CFG(cfg))
|
||||
|
||||
#endif /* __ASMARC_SETUP_H */
|
||||
|
Reference in New Issue
Block a user