kconfig: print recursive dependency errors in the parsed order
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 11 Feb 2024 12:41:04 +0000 (21:41 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 20 Feb 2024 11:47:45 +0000 (20:47 +0900)
commitcc25cfc563adc48c84f1eec6432b369bcab73ca6
tree4af04535c412fb132bb2412b2f213588c78a9214
parent7d5f52a4334c5227408b14c2e76d8840aa26f132
kconfig: print recursive dependency errors in the parsed order

for_all_symbols() iterates in the symbol hash table. The order of
iteration depends on the hash table implementation.

If you use it for printing errors, they are shown in random order.

For example, the order of following test input and the corresponding
error do not match:
 - scripts/kconfig/tests/err_recursive_dep/Kconfig
 - scripts/kconfig/tests/err_recursive_dep/expected_stderr

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/parser.y
scripts/kconfig/tests/err_recursive_dep/expected_stderr