]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: fix line numbers for if-entries in menu tree
authorDirk Gouders <dirk@gouders.net>
Thu, 21 Jun 2018 13:30:54 +0000 (15:30 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 25 Jun 2018 14:21:14 +0000 (23:21 +0900)
commit79f4e73f7bcbc7f4bb3eb13ff7228c011f03e622
tree2b7195b9287e44452c2adbc630cc85074290fbfe
parent9b38db2cca776704587d75b039b3db0f9b4f326b
kconfig: fix line numbers for if-entries in menu tree

The line numers for if-entries in the menu tree are off by one or more
lines which is confusing when debugging for correctness of unrelated changes.

According to the git log, commit 21996e17e9946719 (kconfig: improve
error handling in the parser) was the last one that changed that part
of the parser and replaced

"if_entry: T_IF expr T_EOL"
by
"if_entry: T_IF expr nl"

but the commit message does not state why this has been done.

When reverting that part of the commit, only the line numers are
corrected (checked with cdebug = DEBUG_PARSE in zconf.y), otherwise
the menu tree remains unchanged (checked with zconfdump() enabled in
conf.c).

An example for the corrected line numbers:

drivers/soc/Kconfig:15:source drivers/soc/tegra/Kconfig
drivers/soc/tegra/Kconfig:4:if
drivers/soc/tegra/Kconfig:6:if

changes to:

drivers/soc/Kconfig:15:source drivers/soc/tegra/Kconfig
drivers/soc/tegra/Kconfig:1:if
drivers/soc/tegra/Kconfig:4:if

Signed-off-by: Dirk Gouders <dirk@gouders.net>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kconfig/zconf.y