diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-04-27 11:16:38 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-05-02 13:14:16 +0200 |
commit | a7c79cf3e4eb3c869148c81d2a7dc684bc8eeb07 (patch) | |
tree | 83418f44b95cbd39d022333774d3fcba0ac30aba /scripts/kconfig/symbol.c | |
parent | kbuild: Remove support for Clang's ThinLTO caching (diff) | |
download | linux-a7c79cf3e4eb3c869148c81d2a7dc684bc8eeb07.tar.xz linux-a7c79cf3e4eb3c869148c81d2a7dc684bc8eeb07.zip |
kconfig: remove SYMBOL_NO_WRITE flag
This flag is set to symbols that are not intended to be written
to the .config file.
Since commit b75b0a819af9 ("kconfig: change defconfig_list option to
environment variable"), SYMBOL_NO_WRITE is only set to choices.
Therefore, (sym->flags & SYMBOL_NO_WRITE) is equivalent to
sym_is_choice(sym). This flag is no longer necessary.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/symbol.c')
-rw-r--r-- | scripts/kconfig/symbol.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index 8b34992ba5ed..b909c64f3bac 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c @@ -466,10 +466,9 @@ void sym_calc_value(struct symbol *sym) if (sym->flags & SYMBOL_CHANGED) sym_set_changed(choice_sym); } - } - if (sym->flags & SYMBOL_NO_WRITE) sym->flags &= ~SYMBOL_WRITE; + } if (sym->flags & SYMBOL_NEED_SET_CHOICE_VALUES) set_all_choice_values(sym); |