diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-10-03 19:50:21 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-04 17:10:51 -0500 |
commit | c8f555f10267c89735ee721618c0b17c0f2ba3c8 (patch) | |
tree | aa29efb27f63ad010d48a3e89436a7e07032cd12 /drivers/mtd | |
parent | e81f03248e76a6b2b169e181659dd83a8f8765fd (diff) |
mtd: nand: add includes in NAND core to avoid warnings
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/bbt.c | 1 | ||||
-rw-r--r-- | drivers/mtd/nand/core.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/bbt.c b/drivers/mtd/nand/bbt.c index 7e0ad3190c..f3d05e6757 100644 --- a/drivers/mtd/nand/bbt.c +++ b/drivers/mtd/nand/bbt.c @@ -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> diff --git a/drivers/mtd/nand/core.c b/drivers/mtd/nand/core.c index 0b793695cc..3abaef23c5 100644 --- a/drivers/mtd/nand/core.c +++ b/drivers/mtd/nand/core.c @@ -9,6 +9,7 @@ #define pr_fmt(fmt) "nand: " fmt +#include <common.h> #ifndef __UBOOT__ #include <linux/module.h> #endif |