]> nv-tegra.nvidia Code Review - linux-3.10.git/commitdiff
kconfig: delete last traces of __enabled_ from autoconf.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 12 Apr 2012 23:46:34 +0000 (19:46 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Apr 2012 01:35:58 +0000 (18:35 -0700)
We've now fixed IS_ENABLED() and friends to not require any special
"__enabled_" prefixed versions of the normal Kconfig options, so delete
the last traces of them being generated.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/kconfig/confdata.c

index 9d067447356457545af2fd555dae386f74328b65..52577f052bc12d06503aa9d6459eaa578fb0fd4b 100644 (file)
@@ -489,17 +489,6 @@ header_print_symbol(FILE *fp, struct symbol *sym, const char *value, void *arg)
                        fprintf(fp, "#define %s%s%s 1\n",
                            CONFIG_, sym->name, suffix);
                }
-               /*
-                * Generate the __enabled_CONFIG_* and
-                * __enabled_CONFIG_*_MODULE macros for use by the
-                * IS_{ENABLED,BUILTIN,MODULE} macros. The _MODULE variant is
-                * generated even for booleans so that the IS_ENABLED() macro
-                * works.
-                */
-               fprintf(fp, "#define __enabled_" CONFIG_ "%s %d\n",
-                               sym->name, (*value == 'y'));
-               fprintf(fp, "#define __enabled_" CONFIG_ "%s_MODULE %d\n",
-                               sym->name, (*value == 'm'));
                break;
        }
        case S_HEX: {