From: Michal Marek Date: Wed, 20 Jul 2011 15:38:57 +0000 (+0200) Subject: kconfig: Introduce IS_ENABLED(), IS_BUILTIN() and IS_MODULE() X-Git-Tag: v3.1-rc1~115^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a11c8ea20bf850b3a2c60db8c2e7497d28aba99;p=pandora-kernel.git kconfig: Introduce IS_ENABLED(), IS_BUILTIN() and IS_MODULE() Replace the config_is_*() macros with a variant that allows for grepping for usage of CONFIG_* options in the code. Usage: if (IS_ENABLED(CONFIG_NUMA)) or #if IS_ENABLED(CONFIG_NUMA) The IS_ENABLED() macro evaluates to 1 if the argument is set (to either 'y' or 'm'), IS_BUILTIN() tests if the option is 'y' and IS_MODULE() test if the option is 'm'. Only boolean and tristate options are supported. Reviewed-by: Arnaud Lacombe Acked-by: Randy Dunlap Signed-off-by: Michal Marek --- Reading git-diff-tree failed