public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kconfig: Use macros which are already defined
@ 2014-12-11  9:00 Michal Simek
  2015-02-23 10:23 ` Michal Simek
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Simek @ 2014-12-11  9:00 UTC (permalink / raw)
  To: linux-kernel, monstr

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

It is better to use macros which are already available
because then there is just one location which needs to be change.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

FYI: Fengguang's testing system doesn't show any build error.
---
 include/linux/kconfig.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/kconfig.h b/include/linux/kconfig.h
index be342b94c640..71acdf650e2e 100644
--- a/include/linux/kconfig.h
+++ b/include/linux/kconfig.h
@@ -28,7 +28,7 @@
  *
  */
 #define IS_ENABLED(option) \
-	(config_enabled(option) || config_enabled(option##_MODULE))
+	(IS_BUILTIN(option) || IS_MODULE(option))

 /*
  * IS_BUILTIN(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y', 0
--
1.8.2.3


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-26 21:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-11  9:00 [PATCH] kconfig: Use macros which are already defined Michal Simek
2015-02-23 10:23 ` Michal Simek
2015-02-26 21:23   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox