mtd: omap2: fix static declaration warning
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sun Oct 24 20:59:10 EDT 2010
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=733daa52b8d358e7c18be7fb9f82afc0619408f4
Commit: 733daa52b8d358e7c18be7fb9f82afc0619408f4
Parent: 65e5a0e18e5fb5bc6cfabd8ef4b9fc1c8569ba62
Author: G, Manjunath Kondaiah <manjugk at ti.com>
AuthorDate: Wed Oct 6 03:26:56 2010 +0530
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Oct 25 00:57:33 2010 +0100
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 at ti.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
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 {
More information about the linux-mtd-cvs
mailing list