kconfig: do not imply the type of choice value
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 2 Feb 2024 15:58:25 +0000 (00:58 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 20 Feb 2024 11:47:45 +0000 (20:47 +0900)
Do not feed back the choice type to choice values.

Each choice value should explicitly specify 'bool' or 'tristate',
as all the Kconfig files already do. If the type were missing,
"config symbol defined without type" would be shown.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/menu.c

index 696803d944e0106b617a297fe84504a9c5e49ba9..44465945d6b1200f8e739f7f8a47f3c5f79f24d2 100644 (file)
@@ -305,12 +305,6 @@ void menu_finalize(struct menu *parent)
                                        }
                                }
                        }
-                       /* set the type of the remaining choice values */
-                       for (menu = parent->list; menu; menu = menu->next) {
-                               current_entry = menu;
-                               if (menu->sym && menu->sym->type == S_UNKNOWN)
-                                       menu_set_type(sym->type);
-                       }
 
                        /*
                         * Use the choice itself as the parent dependency of