Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: omap2: fix static declaration warning

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>

authored by

G, Manjunath Kondaiah and committed by
David Woodhouse
733daa52 65e5a0e1

+2 -2
+2 -2
drivers/mtd/nand/omap2.c
··· 111 111 module_param(use_dma, bool, 0); 112 112 MODULE_PARM_DESC(use_dma, "enable/disable use of DMA"); 113 113 #else 114 - const int use_dma; 114 + static const int use_dma; 115 115 #endif 116 116 #else 117 117 const int use_prefetch; 118 - const int use_dma; 118 + static const int use_dma; 119 119 #endif 120 120 121 121 struct omap_nand_info {