kconfig: move the file and lineno in struct file to struct buffer
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 2 Feb 2024 15:58:14 +0000 (00:58 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:40 +0000 (18:20 +0900)
commit8facc5f31954d5fddc2759de474eb6fae1135ced
treed8f124bf59922e621d29fdcabdd5c4c40abfebb2
parent4ff7ceae83bea6afcd0325b88e3f3d9f168cc432
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>
scripts/kconfig/expr.h
scripts/kconfig/lexer.l
scripts/kconfig/menu.c