kconfig: turn defaults and additional prompt for choice members into error
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 4 May 2024 18:33:33 +0000 (03:33 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 9 May 2024 19:34:53 +0000 (04:34 +0900)
commit8a22f867e330965539b9cb5ccc42c2b470330b43
tree5eb7ecf715b7b119066802e955391ecc79c35c6b
parent700e7a8d05ea690308131f69ffc597dfab6db838
kconfig: turn defaults and additional prompt for choice members into error

menu_finalize() warns default properties for choice members and prompts
outside the choice block. These should be hard errors.

While I was here, I moved the checks to slim down menu_finalize().

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