summaryrefslogtreecommitdiff
path: root/scripts/kconfig/lexer.l
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-07-29 06:18:37 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2020-08-14 07:30:04 +0300
commitd41809ff7af91b3f8ed4abe1cb36e69723af00d8 (patch)
tree381382a66ae0a9149df31432dd7877ab707851bc /scripts/kconfig/lexer.l
parent7eb7c106f1538e29b5bab588b072faa7ce65fe7b (diff)
downloadlinux-d41809ff7af91b3f8ed4abe1cb36e69723af00d8.tar.xz
kconfig: add 'static' to some file-local data
Fix some warnings from sparce like follows: warning: symbol '...' was not declared. Should it be static? Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/lexer.l')
-rw-r--r--scripts/kconfig/lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/lexer.l b/scripts/kconfig/lexer.l
index 4b7339ff4c8b..240109f965ae 100644
--- a/scripts/kconfig/lexer.l
+++ b/scripts/kconfig/lexer.l
@@ -36,7 +36,7 @@ struct buffer {
YY_BUFFER_STATE state;
};
-struct buffer *current_buf;
+static struct buffer *current_buf;
static int last_ts, first_ts;