]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: autogenerated config_is_xxx macro
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 6 May 2011 05:03:49 +0000 (07:03 +0200)
committerMichal Marek <mmarek@suse.cz>
Tue, 17 May 2011 13:59:23 +0000 (15:59 +0200)
commitd839389fe47a76674ce7d003fc19d5a0f4ce0641
tree3e466c01d3dac4c2117e3e0f9f6a6dfe0d403247
parent816f32641027d19478bf9e7f503f11a3d15cd8b6
kconfig: autogenerated config_is_xxx macro

this will allow to use to use

if(config_is_xxx())
if(config_is_xxx_module())

in the code instead of

#ifdef CONFIG_xxx
#ifdef CONFIG_xxx_MODULE

and now let the compiler remove the non usefull code and not the
pre-processor

as done in the mach-types for arm as exmaple

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/confdata.c