diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-02 18:58:16 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-19 12:20:41 +0300 |
commit | 5b058034e3aa600802ab609e8264dc2ca1300ebe (patch) | |
tree | b40e310dcfe6b0b32ac8819392ab255813259f89 /scripts/kconfig/menu.c | |
parent | 6676c5bc15e66268c9c9669d5852aa779689c74e (diff) | |
download | linux-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.c | 2 |
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; |