diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-03-10 22:45:15 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-03-19 02:30:51 +0900 |
commit | 4957515b9c3aa3d32a1ee44ab77f0a44f29263dc (patch) | |
tree | d2d04026aae26fe5d7918b0bbc39fc9aca350925 /scripts/kconfig/menu.c | |
parent | c33a4315c4095be368fe127db3385b248d38df8f (diff) | |
download | lwn-4957515b9c3aa3d32a1ee44ab77f0a44f29263dc.tar.gz lwn-4957515b9c3aa3d32a1ee44ab77f0a44f29263dc.zip |
kconfig: check prompt for choice while parsing
This can be checked on-the-fly.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r-- | scripts/kconfig/menu.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 840ce642ec43..8498481e6afe 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -561,9 +561,6 @@ void menu_finalize(struct menu *parent) if (sym->type == S_UNKNOWN) menu_warn(parent, "config symbol defined without type"); - if (sym_is_choice(sym) && !parent->prompt) - menu_warn(parent, "choice must have a prompt"); - /* Check properties connected to this symbol */ sym_check_prop(sym); sym->flags |= SYMBOL_WARNED; |