]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: ctxt1e1: Fixed sparse warning related to static declaration
authorNandini Hanumanthagowda <nandu.hgowda@gmail.com>
Tue, 5 Nov 2013 18:21:18 +0000 (23:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2013 20:19:16 +0000 (12:19 -0800)
Fixed below thrown sparse warning by making the local
variable declaration static:

drivers/staging/cxt1e1/musycc.c:1:14: warning: symbol 'max_intcnt' was
not declared. Should it be static?
drivers/staging/cxt1e1/musycc.c:2:14: warning: symbol 'max_bh' was not
declared. Should it be static?

Signed-off-by: Nandini Hanumanthagowda <nandu.hgowda@gmail.com>
Reviewed-by: Lisa Nguyen <lisa@xenapiadmin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/cxt1e1/musycc.c

index 0ba8c3ae673bd19cb86617a6b3ad0aea32ecf228..7a3a30cd0f7f557a0f53fcfeacd7223311cee4eb 100644 (file)
@@ -1,5 +1,5 @@
-unsigned int max_intcnt = 0;
-unsigned int max_bh = 0;
+static unsigned int max_intcnt = 0;
+static unsigned int max_bh = 0;
 
 /*-----------------------------------------------------------------------------
  * musycc.c -