]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
mtd: omap2: fix static declaration warning
authorG, Manjunath Kondaiah <manjugk@ti.com>
Tue, 5 Oct 2010 21:56:56 +0000 (03:26 +0530)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 24 Oct 2010 23:57:33 +0000 (00:57 +0100)
This patch fixes sparse warning for static declaration of variable "use_dma"

drivers/mtd/nand/omap2.c:114:11: warning: symbol 'use_dma' was not declared. Should it be static?

Signed-off-by: G, Manjunath Kondaiah <manjugk@ti.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/omap2.c

index 133d51528f8dc0fb79eae4d12230e1a65bd7595e..439e80d78edd5ec12e27052dfa86eb2b33459296 100644 (file)
@@ -111,11 +111,11 @@ static int use_dma = 1;
 module_param(use_dma, bool, 0);
 MODULE_PARM_DESC(use_dma, "enable/disable use of DMA");
 #else
-const int use_dma;
+static const int use_dma;
 #endif
 #else
 const int use_prefetch;
-const int use_dma;
+static const int use_dma;
 #endif
 
 struct omap_nand_info {