public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] OMAP: NAND: Fix static declaration warning
@ 2010-10-05 21:56 G, Manjunath Kondaiah
  2010-10-05 21:56 ` [PATCH v3] OMAP2: onenand: Fix static function warnings G, Manjunath Kondaiah
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: G, Manjunath Kondaiah @ 2010-10-05 21:56 UTC (permalink / raw)
  To: linux-omap; +Cc: linux-arm-kernel, linux-mtd, Tony Lindgren, Nishanth Menon

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>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mtd@lists.infradead.org
Cc: Tony Lindgren <tony@atomide.com>
Cc: Nishanth Menon <nm@ti.com>
---
Changes since v1:
 - no logical changes, patch seperated from series based Tony's suggestion.

 drivers/mtd/nand/omap2.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 133d515..439e80d 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 {
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-10-19 10:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-05 21:56 [PATCH v3] OMAP: NAND: Fix static declaration warning G, Manjunath Kondaiah
2010-10-05 21:56 ` [PATCH v3] OMAP2: onenand: Fix static function warnings G, Manjunath Kondaiah
2010-10-05 21:56 ` [PATCH v3] OMAP2/3: NAND: Convert write/read functions to raw read/write G, Manjunath Kondaiah
2010-10-11 18:59   ` Artem Bityutskiy
2010-10-05 21:56 ` [PATCH v3] TWL IRQ: Fix fucntion declaration warnings G, Manjunath Kondaiah
2010-10-12  5:36   ` G, Manjunath Kondaiah
2010-10-19  9:06   ` Samuel Ortiz
2010-10-19  9:28     ` Uwe Kleine-König
2010-10-19 10:33       ` Samuel Ortiz
2010-10-07 17:35 ` [PATCH v3] OMAP: NAND: Fix static declaration warning Vimal Singh
2010-10-11 18:58 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox