kconfig: make input_mode static
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 11 Jan 2018 13:39:39 +0000 (22:39 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 21 Jan 2018 15:49:30 +0000 (00:49 +0900)
Sparse reports:
  warning: symbol 'input_mode' was not declared. Should it be static?

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kconfig/conf.c

index 866369f10ff84f4d2cae14eb6dfbe7e353c08adf..26156cb38ba044bd0e86ee29191ddb93b8fec0fb 100644 (file)
@@ -35,7 +35,8 @@ enum input_mode {
        savedefconfig,
        listnewconfig,
        olddefconfig,
-} input_mode = oldaskconfig;
+};
+static enum input_mode input_mode = oldaskconfig;
 
 static int indent = 1;
 static int tty_stdio;