Skip to content
Snippets Groups Projects
Commit c8f555f1 authored by Miquel Raynal's avatar Miquel Raynal Committed by Tom Rini
Browse files

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: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent e81f0324
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#define pr_fmt(fmt) "nand-bbt: " fmt #define pr_fmt(fmt) "nand-bbt: " fmt
#include <common.h>
#include <linux/mtd/nand.h> #include <linux/mtd/nand.h>
#ifndef __UBOOT__ #ifndef __UBOOT__
#include <linux/slab.h> #include <linux/slab.h>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#define pr_fmt(fmt) "nand: " fmt #define pr_fmt(fmt) "nand: " fmt
#include <common.h>
#ifndef __UBOOT__ #ifndef __UBOOT__
#include <linux/module.h> #include <linux/module.h>
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment