aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lkc_proto.h
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-04-10 15:57:22 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2021-04-14 15:22:49 +0900
commit5ee546594025fc9337e4cc8b79db89f1258cf480 (patch)
treec98b49c0732458eaea9bc63fae96868a649fc794 /scripts/kconfig/lkc_proto.h
parentkconfig: nconf: fix core dump when searching in empty menu (diff)
downloadlinux-dev-5ee546594025fc9337e4cc8b79db89f1258cf480.tar.xz
linux-dev-5ee546594025fc9337e4cc8b79db89f1258cf480.zip
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>
Diffstat (limited to 'scripts/kconfig/lkc_proto.h')
-rw-r--r--scripts/kconfig/lkc_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/lkc_proto.h b/scripts/kconfig/lkc_proto.h
index 9e81be33c40f..a11626bdc421 100644
--- a/scripts/kconfig/lkc_proto.h
+++ b/scripts/kconfig/lkc_proto.h
@@ -8,6 +8,7 @@ int conf_read_simple(const char *name, int);
int conf_write_defconfig(const char *name);
int conf_write(const char *name);
int conf_write_autoconf(int overwrite);
+void conf_set_changed(bool val);
bool conf_get_changed(void);
void conf_set_changed_callback(void (*fn)(void));
void conf_set_message_callback(void (*fn)(const char *s));