summaryrefslogtreecommitdiff
path: root/scripts/kconfig/menu.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-02-02 18:58:16 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2024-02-19 12:20:41 +0300
commit5b058034e3aa600802ab609e8264dc2ca1300ebe (patch)
treeb40e310dcfe6b0b32ac8819392ab255813259f89 /scripts/kconfig/menu.c
parent6676c5bc15e66268c9c9669d5852aa779689c74e (diff)
downloadlinux-5b058034e3aa600802ab609e8264dc2ca1300ebe.tar.xz
kconfig: change file_lookup() to return the file name
Currently, file_lookup() returns a pointer to (struct file), but the callers use only file->name. Make it return the ->name member directly. This adjustment encapsulates struct file and file_list as internal implementation. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r--scripts/kconfig/menu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index b879576d1ab4..f701382f8a69 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -16,8 +16,6 @@ static const char nohelp_text[] = "There is no help available for this option.";
struct menu rootmenu;
static struct menu **last_entry_ptr;
-struct file *file_list;
-
void menu_warn(struct menu *menu, const char *fmt, ...)
{
va_list ap;