]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kconfig: change sym_change_count to a boolean flag
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 10 Apr 2021 06:57:22 +0000 (15:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 12 Apr 2021 00:29:14 +0000 (09:29 +0900)
commit99870a9d87b8eaa5d3e28cba06e6444d6a494b0b
tree5662721a8eb168ca47c27c2f55f88d957903b8d2
parent2d316acda727864cb55835c6eb0043219e641e2c
kconfig: change sym_change_count to a boolean flag

sym_change_count has no good reason to be 'int' type.

sym_set_change_count() compares the old and new values after casting
both of them to (bool). I do not see any practical diffrence between
sym_set_change_count(1) and sym_add_change_count(1).

Use the boolean flag, conf_changed.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/confdata.c
scripts/kconfig/lkc.h
scripts/kconfig/lkc_proto.h
scripts/kconfig/mconf.c
scripts/kconfig/nconf.c
scripts/kconfig/parser.y
scripts/kconfig/symbol.c