summaryrefslogtreecommitdiffstats
path: root/scripts/genksyms/lex.l
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-01-16 00:43:02 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2021-02-16 04:01:44 +0100
commitab37d5a43162ab424e36be03684881df438378a7 (patch)
treeb507088335bb9bd37557f8599ddbc8e4238f5ad1 /scripts/genksyms/lex.l
parentkbuild: check the minimum compiler version in Kconfig (diff)
downloadlinux-ab37d5a43162ab424e36be03684881df438378a7.tar.xz
linux-ab37d5a43162ab424e36be03684881df438378a7.zip
genksyms: make source_file a local variable in lexer
This is only used in yylex() in lex.l Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/genksyms/lex.l')
-rw-r--r--scripts/genksyms/lex.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/genksyms/lex.l b/scripts/genksyms/lex.l
index ae76472efc43..9e88c100fc28 100644
--- a/scripts/genksyms/lex.l
+++ b/scripts/genksyms/lex.l
@@ -125,6 +125,7 @@ yylex(void)
static int suppress_type_lookup, dont_want_brace_phrase;
static struct string_list *next_node;
+ static char *source_file;
int token, count = 0;
struct string_list *cur_node;