summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-05-04 20:33:27 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2024-05-09 21:34:52 +0200
commit7d2806746d4636320e8e061a68eed32493e7c284 (patch)
tree4228ef88da71c3c19fe77863d20c273bb738605a /scripts
parentkconfig: gconf: use MENU_CHANGED instead of SYMBOL_CHANGED (diff)
downloadlinux-7d2806746d4636320e8e061a68eed32493e7c284.tar.xz
linux-7d2806746d4636320e8e061a68eed32493e7c284.zip
kconfig: use linked list in sym_set_changed()
Following the approach employed in commit bedf92362317 ("kconfig: use linked list in get_symbol_str() to iterate over menus"), simplify the iteration on the menus of the specified symbol. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/symbol.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index b909c64f3bac..8512c29c84bb 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -152,13 +152,11 @@ static void sym_validate_range(struct symbol *sym)
static void sym_set_changed(struct symbol *sym)
{
- struct property *prop;
+ struct menu *menu;
sym->flags |= SYMBOL_CHANGED;
- for (prop = sym->prop; prop; prop = prop->next) {
- if (prop->menu)
- prop->menu->flags |= MENU_CHANGED;
- }
+ list_for_each_entry(menu, &sym->menus, link)
+ menu->flags |= MENU_CHANGED;
}
static void sym_set_all_changed(void)