]> git.baikalelectronics.ru Git - kernel.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>
Wed, 14 Apr 2021 06:22:49 +0000 (15:22 +0900)
commit8d17b7d0d7fa14c2555090354fbe75c5114fda03
treec98b49c0732458eaea9bc63fae96868a649fc794
parenta41a9a2015933fbb684d1dc839e97c3d5f9a0bcd
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