diff mbox series

[1/3] kconfig: make input_mode static

Message ID 1515677981-21952-1-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 52e58a3caeba5d6029a9b6be02e4c883c22610ec
Headers show
Series [1/3] kconfig: make input_mode static | expand

Commit Message

Masahiro Yamada Jan. 11, 2018, 1:39 p.m. UTC
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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.7.4

Comments

Masahiro Yamada Jan. 18, 2018, 1:56 p.m. UTC | #1
2018-01-11 22:39 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> Sparse reports:

>   warning: symbol 'input_mode' was not declared. Should it be static?

>

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

> ---



Applied all 3 patches to linux-kbuild/kconfig.




-- 
Best Regards
Masahiro Yamada
diff mbox series

Patch

diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 8b9cdf4..31c09c6 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -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;