diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-02 18:58:12 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-19 12:20:40 +0300 |
commit | d3e4a68fe20f3c05de77f5e300e3d76a9f68d942 (patch) | |
tree | 14a47f85673b753e3ec3f40c248c740780d62f19 /scripts/kconfig/parser.y | |
parent | fe273c6fc318da07bdbb42d26d8e6e150aa947af (diff) | |
download | linux-d3e4a68fe20f3c05de77f5e300e3d76a9f68d942.tar.xz |
kconfig: do not delay the cur_filename update
Currently, cur_filename is updated at the first token of each statement.
However, this seems unnecessary based on my understanding; the parser
can use the same variable as the lexer tracks.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/parser.y')
-rw-r--r-- | scripts/kconfig/parser.y | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/kconfig/parser.y b/scripts/kconfig/parser.y index d1d05c8cd89d..e58c24d2e5ab 100644 --- a/scripts/kconfig/parser.y +++ b/scripts/kconfig/parser.y @@ -488,6 +488,14 @@ void conf_parse(const char *name) yydebug = 1; yyparse(); + /* + * FIXME: + * cur_filename and cur_lineno are used even after yyparse(); + * menu_finalize() calls menu_add_symbol(). This should be fixed. + */ + cur_filename = "<none>"; + cur_lineno = 0; + str_printf(&autoconf_cmd, "\n" "$(autoconfig): $(deps_config)\n" |