Skip to contentSkip to conversation

mtd: nand: Include linux/mtd/partitions.h in nand_base.h

PATCH New Stefan Roese 2 participants 2 messages Apr 24, 2009 – Apr 27, 2009

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

PATCH 1/1 mtd: nand: Include linux/mtd/partitions.h in nand_base.h

This patch removes this compilation warning when CONFIG_MTD_PARTITIONS is defined:

nand_base.c: In function 'nand_release':
nand_base.c:2922: warning: implicit declaration of function 'del_mtd_partitions'

---
 drivers/mtd/nand/nand_base.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/mtd/nand/nand_base.c +4 -0
index e6ac859..360b070 100644
@@ -68,6 +68,10 @@
 #include <linux/mtd/nand.h>
 #include <linux/mtd/nand_ecc.h>
 
+#ifdef CONFIG_MTD_PARTITIONS
+#include <linux/mtd/partitions.h>
+#endif
+
 #include <asm/io.h>
 #include <asm/errno.h>
 
Signature · 1 line
1.6.2.4
#1 lore raw

PATCH 1/1 mtd: nand: Include linux/mtd/partitions.h in nand_base.h

Dear Stefan Roese,

Quoted 10 lines · In message <[email protected]> you wrote:

This patch removes this compilation warning when CONFIG_MTD_PARTITIONS is defined:

nand_base.c: In function 'nand_release':
nand_base.c:2922: warning: implicit declaration of function 'del_mtd_partitions'

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

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Change is the essential process of all existence.
	-- Spock, "Let That Be Your Last Battlefield",
	   stardate 5730.2