kconfig: fix missing '# end of' for empty menu
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 14 Feb 2022 03:19:18 +0000 (12:19 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 18 Feb 2022 02:36:17 +0000 (11:36 +0900)
commita7d4f58e99dd3f6067606115ce147c15c17b6e93
treedc0b210afb7fd50abc984506a43e419eb91e41cd
parent868653f421cd37e8ec3880da19f0aac93f5c46cc
kconfig: fix missing '# end of' for empty menu

Currently, "# end of ..." is inserted when the menu goes back to its
parent.

Hence, an empty menu:

  menu "Foo"
  endmenu

... ends up with unbalanced menu comments, like this:

  #
  # Foo
  #

Let's close the menu comments properly:

  #
  # Foo
  #
  # end of Foo

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