From: G, Manjunath Kondaiah Date: Tue, 5 Oct 2010 21:56:56 +0000 (+0530) Subject: mtd: omap2: fix static declaration warning X-Git-Tag: v2.6.37-rc1~22^2~28 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=733daa52b8d358e7c18be7fb9f82afc0619408f4;p=karo-tx-linux.git 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 133d51528f8d..439e80d78edd 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c @@ -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 {