diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-08-12 20:49:46 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-09-01 20:34:48 +0900 |
commit | 5e6cc7e3f2965fc3df901416336f6bf985a363da (patch) | |
tree | c47261bbdc0a274cdcfc53f6aa3c5786cf2749d3 /scripts/kconfig/menu.c | |
parent | dc73a57aeaaabe148c69c16b388771f891a996a2 (diff) | |
download | lwn-5e6cc7e3f2965fc3df901416336f6bf985a363da.tar.gz lwn-5e6cc7e3f2965fc3df901416336f6bf985a363da.zip |
kconfig: stop adding P_SYMBOL property to symbols
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>
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r-- | scripts/kconfig/menu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 323cc0b62be6..854edeb4d2db 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -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) |