vmlinux.lds.h: replace config_enabled() with IS_ENABLED()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 14 Jun 2016 05:58:58 +0000 (14:58 +0900)
committerMichal Marek <mmarek@suse.com>
Mon, 20 Jun 2016 20:42:32 +0000 (22:42 +0200)
The use of config_enabled() against config options is ambiguous.

Now, IS_ENABLED() is implemented purely with macro expansion, so
let's replace config_enabled() with IS_ENABLED().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
include/asm-generic/vmlinux.lds.h

index 6a67ab94b553363934bc9c2e07eb12d6c8a977f7..faa4d2bf92f5206daeedb6355fb58ecdfaace5ba 100644 (file)
 
 #define ___OF_TABLE(cfg, name) _OF_TABLE_##cfg(name)
 #define __OF_TABLE(cfg, name)  ___OF_TABLE(cfg, name)
-#define OF_TABLE(cfg, name)    __OF_TABLE(config_enabled(cfg), name)
+#define OF_TABLE(cfg, name)    __OF_TABLE(IS_ENABLED(cfg), name)
 #define _OF_TABLE_0(name)
 #define _OF_TABLE_1(name)                                              \
        . = ALIGN(8);                                                   \