]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kconfig: stop adding P_SYMBOL property to symbols
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 12 Aug 2024 11:49:46 +0000 (20:49 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 1 Sep 2024 11:34:48 +0000 (20:34 +0900)
I believe its last usage was in the following code:

    if (prop == NULL)
            prop = stack->sym->prop;

This code was previously used to print the file name and line number of
associated symbols in sym_check_print_recursive(), which was removed by
commit 9d0d26604657 ("kconfig: recursive checks drop file/lineno").

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/menu.c

index 323cc0b62be6c622d795843fe71e20fa40a753de..854edeb4d2db0f886921dc8df78b5729de3549d7 100644 (file)
@@ -78,10 +78,8 @@ void menu_add_entry(struct symbol *sym)
        *last_entry_ptr = menu;
        last_entry_ptr = &menu->next;
        current_entry = menu;
-       if (sym) {
-               menu_add_symbol(P_SYMBOL, sym, NULL);
+       if (sym)
                list_add_tail(&menu->link, &sym->menus);
-       }
 }
 
 struct menu *menu_add_menu(void)