mtd: nand: add includes in NAND core to avoid warnings
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 3 Oct 2019 17:50:21 +0000 (19:50 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 4 Dec 2019 22:10:51 +0000 (17:10 -0500)
Because of the include's game, when some files are compiled for a SPI
NAND device, no warning appears. But when it is for a raw NAND device,
GCC complains. Fix these warning by including <common.h>.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/bbt.c
drivers/mtd/nand/core.c

index 7e0ad31..f3d05e6 100644 (file)
@@ -9,6 +9,7 @@
 
 #define pr_fmt(fmt)    "nand-bbt: " fmt
 
+#include <common.h>
 #include <linux/mtd/nand.h>
 #ifndef __UBOOT__
 #include <linux/slab.h>
index 0b79369..3abaef2 100644 (file)
@@ -9,6 +9,7 @@
 
 #define pr_fmt(fmt)    "nand: " fmt
 
+#include <common.h>
 #ifndef __UBOOT__
 #include <linux/module.h>
 #endif