kconfig: drop 'boolean' keyword
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 15 Dec 2017 15:38:02 +0000 (00:38 +0900)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 10 Feb 2019 20:47:22 +0000 (21:47 +0100)
No more users of this keyword.  Drop it according to the notice by
commit 6341e62b212a ("kconfig: use bool instead of boolean for type
definition attributes").

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/confdata.c
config/kconf_id.c
config/menu.c
config/symbol.c
config/zconf.y

index e606f06fc9e557dc0401b44660bd1dae08b313c3..204e751f4204f88763ab894188c0b8e934269091 100644 (file)
@@ -1186,7 +1186,7 @@ void set_all_choice_values(struct symbol *csym)
 bool conf_set_all_new_symbols(enum conf_def_mode mode)
 {
        struct symbol *sym, *csym;
-       int i, cnt, pby, pty, ptm;      /* pby: probability of boolean  = y
+       int i, cnt, pby, pty, ptm;      /* pby: probability of bool     = y
                                         * pty: probability of tristate = y
                                         * ptm: probability of tristate = m
                                         */
index 5abbc728fbc43f99ecf1693d84a2ce76b827ef12..3ea9c5f9f730db8a6c555b5692a3086434524956 100644 (file)
@@ -20,7 +20,6 @@ static struct kconf_id kconf_id_array[] = {
        { "tristate",           T_TYPE,                 TF_COMMAND, S_TRISTATE },
        { "def_tristate",       T_DEFAULT,              TF_COMMAND, S_TRISTATE },
        { "bool",               T_TYPE,                 TF_COMMAND, S_BOOLEAN },
-       { "boolean",            T_TYPE,                 TF_COMMAND, S_BOOLEAN },
        { "def_bool",           T_DEFAULT,              TF_COMMAND, S_BOOLEAN },
        { "int",                T_TYPE,                 TF_COMMAND, S_INT },
        { "hex",                T_TYPE,                 TF_COMMAND, S_HEX },
index 93fe2fb841db63c33880967cd87a52effa9072c0..47bec3434fef16f1b0c46e0f8d908ee704aa57ca 100644 (file)
@@ -269,13 +269,13 @@ static void sym_check_prop(struct symbol *sym)
                        if (sym->type != S_BOOLEAN && sym->type != S_TRISTATE)
                                prop_warn(prop,
                                    "config symbol '%s' uses %s, but is "
-                                   "not boolean or tristate", sym->name, use);
+                                   "not bool or tristate", sym->name, use);
                        else if (sym2->type != S_UNKNOWN &&
                                 sym2->type != S_BOOLEAN &&
                                 sym2->type != S_TRISTATE)
                                prop_warn(prop,
                                    "'%s' has wrong type. '%s' only "
-                                   "accept arguments of boolean and "
+                                   "accept arguments of bool and "
                                    "tristate type", sym2->name, use);
                        break;
                case P_RANGE:
index 55c95e0bb48a546c7fddd5fae42d9f7855ad840b..c9123ed2b791ad2de18450485f11ed15984cf448 100644 (file)
@@ -77,7 +77,7 @@ const char *sym_type_name(enum symbol_type type)
 {
        switch (type) {
        case S_BOOLEAN:
-               return "boolean";
+               return "bool";
        case S_TRISTATE:
                return "tristate";
        case S_INT:
index dae149812cbc44c552a556a9ea760d4f57d0231a..f2b97443142dbc734efacd913a274a89f1167f16 100644 (file)
@@ -640,7 +640,7 @@ static void print_symbol(FILE *out, struct menu *menu)
                fprintf(out, "\nconfig %s\n", sym->name);
        switch (sym->type) {
        case S_BOOLEAN:
-               fputs("  boolean\n", out);
+               fputs("  bool\n", out);
                break;
        case S_TRISTATE:
                fputs("  tristate\n", out);