]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ea9a825953241fb592ce950ff303470db5e8073
treedc0b210afb7fd50abc984506a43e419eb91e41cd
parent76378bdf06b69d81f092dbf02512fb846e9d1881
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