Skip to contentSkip to conversation

omap2/3: mtd: fix compile warning

PATCH In review Sanjeev Premi 2 participants 2 messages Dec 29, 2009 – Jan 10, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap2/3: mtd: fix compile warning

This patch fixes following compile warning:

drivers/mtd/nand/omap2.c:508: warning: passing argumen t 2 of 'omap_nand_dma_transfer' discards qualifiers fr om pointer target type

---
 drivers/mtd/nand/omap2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/omap2.c +1 -1
index 1bb799f..08c193c 100644
@@ -505,7 +505,7 @@ static void omap_write_buf_dma_pref(struct mtd_info *mtd,
 		omap_write_buf_pref(mtd, buf, len);
 	else
 		/* start transfer in DMA mode */
-		omap_nand_dma_transfer(mtd, buf, len, 0x1);
+		omap_nand_dma_transfer(mtd, (void *)buf, len, 0x1);
 }
 
 /**
Signature · 1 line
1.6.2.2
#1 lore raw
Quoted 16 lines · Sanjeev Premi

This patch fixes following compile warning:

drivers/mtd/nand/omap2.c:508: warning: passing argumen t 2 of 'omap_nand_dma_transfer' discards qualifiers fr om pointer target type

---
 drivers/mtd/nand/omap2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/omap2.c +0 -0
index 1bb799f..08c193c 100644

drivers/mtd/nand/omap2.c static void omap_write_buf_dma_pref(struct mtd_info *mtd, · line 509

Quoted 6 lines
drivers/mtd/nand/omap2.c +1 -1
@@ -505,7 +505,7 @@ static void omap_write_buf_dma_pref(struct mtd_info *mtd,
 		omap_write_buf_pref(mtd, buf, len);
 	else
 		/* start transfer in DMA mode */
-		omap_nand_dma_transfer(mtd, buf, len, 0x1);
+		omap_nand_dma_transfer(mtd, (void *)buf, len, 0x1);
 }

Pushed this patch to my l2-mtd-2.6/dunno tree.

Signature · 7 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html