diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-03 00:58:14 +0900 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-19 18:20:40 +0900 |
| commit | 8facc5f31954d5fddc2759de474eb6fae1135ced (patch) | |
| tree | d8f124bf59922e621d29fdcabdd5c4c40abfebb2 /scripts/kconfig/menu.c | |
| parent | kconfig: replace remaining current_file->name with cur_filename (diff) | |
| download | linux-8facc5f31954d5fddc2759de474eb6fae1135ced.tar.gz linux-8facc5f31954d5fddc2759de474eb6fae1135ced.zip | |
kconfig: move the file and lineno in struct file to struct buffer
struct file has two link nodes, 'next' and 'parent'.
The former is used to link files in the 'file_list' linked list,
which manages the list of Kconfig files seen so far.
The latter is used to link files in the 'current_file' linked list,
which manages the inclusion ("source") tree.
The latter should be tracked together with the lexer state.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/menu.c')
| -rw-r--r-- | scripts/kconfig/menu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 0ded0b1830d0..b879576d1ab4 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -17,7 +17,6 @@ struct menu rootmenu; static struct menu **last_entry_ptr; struct file *file_list; -struct file *current_file; void menu_warn(struct menu *menu, const char *fmt, ...) { |
