]> 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)
commitabbd2c1a61fd6db25c729d5cdd840bef66c2fed7
treedc0b210afb7fd50abc984506a43e419eb91e41cd
parent0dbbfed1e851a6c7941c04814781faeb9d010762
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