Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+3 -5
+3 -5
scripts/kconfig/symbol.c
··· 152 152 153 153 static void sym_set_changed(struct symbol *sym) 154 154 { 155 - struct property *prop; 155 + struct menu *menu; 156 156 157 157 sym->flags |= SYMBOL_CHANGED; 158 - for (prop = sym->prop; prop; prop = prop->next) { 159 - if (prop->menu) 160 - prop->menu->flags |= MENU_CHANGED; 161 - } 158 + list_for_each_entry(menu, &sym->menus, link) 159 + menu->flags |= MENU_CHANGED; 162 160 } 163 161 164 162 static void sym_set_all_changed(void)