summaryrefslogtreecommitdiff
path: root/scripts/genksyms/genksyms.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-01-16 02:43:02 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2021-02-16 06:01:44 +0300
commitab37d5a43162ab424e36be03684881df438378a7 (patch)
treeb507088335bb9bd37557f8599ddbc8e4238f5ad1 /scripts/genksyms/genksyms.c
parentaec6c60a01d3a3170242d6a99372a388e1136dc6 (diff)
downloadlinux-ab37d5a43162ab424e36be03684881df438378a7.tar.xz
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/genksyms.c')
-rw-r--r--scripts/genksyms/genksyms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/genksyms/genksyms.c b/scripts/genksyms/genksyms.c
index 23eff234184f..4827c5abe5b7 100644
--- a/scripts/genksyms/genksyms.c
+++ b/scripts/genksyms/genksyms.c
@@ -29,7 +29,7 @@ static struct symbol *symtab[HASH_BUCKETS];
static FILE *debugfile;
int cur_line = 1;
-char *cur_filename, *source_file;
+char *cur_filename;
int in_source_file;
static int flag_debug, flag_dump_defs, flag_reference, flag_dump_types,