Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1421598

[PATCH 5/5] vmlinux.lds.h: replace config_enabled() with IS_ENABLED()

From Masahiro Yamada <yamada.masahiro@socionext.com>
Newsgroups linux.kernel
Subject [PATCH 5/5] vmlinux.lds.h: replace config_enabled() with IS_ENABLED()
Date 2016-06-14 08:00 +0200
Message-ID <rJPyi-wi-25@gated-at.bofh.it> (permalink)
References <rJPyh-wi-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---

 include/asm-generic/vmlinux.lds.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index 6a67ab9..faa4d2b 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -164,7 +164,7 @@
 
 #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);							\
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/5] kconfig.h: use __is_defined() to check if MODULE is defined Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-06-14 08:00 +0200
  [PATCH 5/5] vmlinux.lds.h: replace config_enabled() with IS_ENABLED() Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-06-14 08:00 +0200
    Re: [PATCH 5/5] vmlinux.lds.h: replace config_enabled() with  IS_ENABLED() Michal Marek <mmarek@suse.cz> - 2016-06-20 22:50 +0200
      Re: [PATCH 5/5] vmlinux.lds.h: replace config_enabled() with IS_ENABLED() Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-06-21 01:30 +0200
        Re: [PATCH 5/5] vmlinux.lds.h: replace config_enabled() with IS_ENABLED() Arnd Bergmann <arnd@arndb.de> - 2016-06-21 11:30 +0200
          Re: [PATCH 5/5] vmlinux.lds.h: replace config_enabled() with IS_ENABLED() Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-06-22 09:00 +0200
        Re: [PATCH 5/5] vmlinux.lds.h: replace config_enabled() with IS_ENABLED() Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-06-23 10:10 +0200

csiph-web