summaryrefslogtreecommitdiff
path: root/scripts/kconfig/menu.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-02-03 00:58:08 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-02-19 18:20:40 +0900
commit1d7c4f10baacbc658918f7ddec31e1d1962df6fc (patch)
tree6905e2bbb70bec0a7fb6e980a11aeba69b0c0b68 /scripts/kconfig/menu.c
parent52907c07c49b7b820924773d596c5eec5eaf7469 (diff)
downloadlwn-1d7c4f10baacbc658918f7ddec31e1d1962df6fc.tar.gz
lwn-1d7c4f10baacbc658918f7ddec31e1d1962df6fc.zip
kconfig: remove zconf_curname() and zconf_lineno()
Now zconf_curname() and zconf_lineno() are so simple that they just return cur_filename, cur_lineno, respectively. Remove these functions, and then use cur_filename and cur_lineno directly. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r--scripts/kconfig/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 2cce8b651f61..ddca95879631 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -54,7 +54,7 @@ void menu_add_entry(struct symbol *sym)
menu->sym = sym;
menu->parent = current_menu;
menu->file = current_file;
- menu->lineno = zconf_lineno();
+ menu->lineno = cur_lineno;
*last_entry_ptr = menu;
last_entry_ptr = &menu->next;
@@ -135,7 +135,7 @@ static struct property *menu_add_prop(enum prop_type type, struct expr *expr,
memset(prop, 0, sizeof(*prop));
prop->type = type;
prop->file = current_file;
- prop->lineno = zconf_lineno();
+ prop->lineno = cur_lineno;
prop->menu = current_entry;
prop->expr = expr;
prop->visible.expr = dep;