mtd: nand: Include linux/mtd/partitions.h in nand_base.h
Subsystems (2)
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'
Signed-off-by Stefan Roese <[email protected]>
--- drivers/mtd/nand/nand_base.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/mtd/nand/nand_base.c +4 -0
@@ -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
Wolfgang Denk
AppliedPATCH 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_PARTITIONSis defined:
nand_base.c: In function 'nand_release':
nand_base.c:2922: warning: implicit declaration of function 'del_mtd_partitions'Signed-off-by Stefan Roese <[email protected]>--- 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