diff options
Diffstat (limited to 'drivers/mtd/nand')
57 files changed, 96 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/am335x_spl_bch.c b/drivers/mtd/nand/raw/am335x_spl_bch.c index b6fc5f29c7..7b40689cc6 100644 --- a/drivers/mtd/nand/raw/am335x_spl_bch.c +++ b/drivers/mtd/nand/raw/am335x_spl_bch.c @@ -10,10 +10,12 @@ */ #include <common.h> +#include <compiler.h> #include <nand.h> #include <asm/io.h> #include <linux/delay.h> #include <linux/mtd/nand_ecc.h> +#include <linux/types.h> static int nand_ecc_pos[] = CONFIG_SYS_NAND_ECCPOS; static struct mtd_info *mtd; diff --git a/drivers/mtd/nand/raw/arasan_nfc.c b/drivers/mtd/nand/raw/arasan_nfc.c index c604db376c..e56b060386 100644 --- a/drivers/mtd/nand/raw/arasan_nfc.c +++ b/drivers/mtd/nand/raw/arasan_nfc.c @@ -6,9 +6,12 @@ */ #include <common.h> +#include <compiler.h> #include <malloc.h> +#include <stdbool.h> #include <stdio.h> #include <asm/io.h> +#include <asm/types.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/kernel.h> diff --git a/drivers/mtd/nand/raw/atmel_nand.c b/drivers/mtd/nand/raw/atmel_nand.c index 75c21ff785..78c3ab2dc0 100644 --- a/drivers/mtd/nand/raw/atmel_nand.c +++ b/drivers/mtd/nand/raw/atmel_nand.c @@ -11,6 +11,7 @@ */ #include <common.h> +#include <compiler.h> #include <log.h> #include <asm/gpio.h> #include <asm/arch/gpio.h> @@ -22,6 +23,7 @@ #include <linux/errno.h> #include <linux/printk.h> #include <linux/string.h> +#include <linux/types.h> #include <malloc.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/atmel_nand_ecc.h b/drivers/mtd/nand/raw/atmel_nand_ecc.h index 05eeedb3f8..1ece825186 100644 --- a/drivers/mtd/nand/raw/atmel_nand_ecc.h +++ b/drivers/mtd/nand/raw/atmel_nand_ecc.h @@ -7,6 +7,7 @@ #ifndef ATMEL_NAND_ECC_H #define ATMEL_NAND_ECC_H +#include <asm/types.h> #define ATMEL_ECC_CR 0x00 /* Control register */ #define ATMEL_ECC_RST (1 << 0) /* Reset parity */ diff --git a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c index acfe2ba0bd..f07498fe26 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c @@ -1,9 +1,12 @@ // SPDX-License-Identifier: GPL-2.0+ #include <common.h> +#include <compiler.h> +#include <stdbool.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <asm/types.h> #include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c index 4c886e1533..d17b80e507 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c @@ -1,9 +1,12 @@ // SPDX-License-Identifier: GPL-2.0+ #include <common.h> +#include <compiler.h> +#include <stdbool.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <asm/types.h> #include <linux/bitops.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c index a649b1a896..d93a11c0c9 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c @@ -1,9 +1,12 @@ // SPDX-License-Identifier: GPL-2.0+ #include <common.h> +#include <compiler.h> +#include <stdbool.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <asm/types.h> #include <linux/bitops.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c index 25bfe253f2..de19a16e61 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c @@ -1,9 +1,12 @@ // SPDX-License-Identifier: GPL-2.0+ #include <common.h> +#include <compiler.h> +#include <stdbool.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <asm/types.h> #include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c index 926c59eb14..2d0bbea727 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c @@ -1,9 +1,12 @@ // SPDX-License-Identifier: GPL-2.0+ #include <common.h> +#include <compiler.h> +#include <stdbool.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <asm/types.h> #include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index b90f26978f..65159d9e02 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -13,6 +13,8 @@ */ #include <common.h> +#include <compiler.h> +#include <stdbool.h> #include <time.h> #include <vsprintf.h> #include <asm/io.h> @@ -32,6 +34,7 @@ #include <asm/processor.h> #include <dm.h> #include <linux/string.h> +#include <linux/types.h> #include "brcmnand.h" #include "brcmnand_compat.h" diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.h b/drivers/mtd/nand/raw/brcmnand/brcmnand.h index 2a48dfea90..90b24f95ca 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.h +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.h @@ -3,6 +3,7 @@ #ifndef __BRCMNAND_H__ #define __BRCMNAND_H__ +#include <compiler.h> #include <stdbool.h> #include <linux/types.h> #include <linux/io.h> diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c index d8d752d608..8ae0dbcf7b 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c @@ -6,6 +6,7 @@ #include <stdarg.h> #include <vsprintf.h> #include <dm/devres.h> +#include <linux/types.h> #include "brcmnand_compat.h" static char *devm_kvasprintf(struct udevice *dev, gfp_t gfp, const char *fmt, diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h index 52711d4978..d7e80a000a 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h @@ -6,6 +6,8 @@ struct clk; struct udevice; +#include <linux/types.h> + char *devm_kasprintf(struct udevice *dev, gfp_t gfp, const char *fmt, ...); #endif /* __BRCMNAND_COMPAT_H */ diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c index c00fc65b6a..fea7147054 100644 --- a/drivers/mtd/nand/raw/davinci_nand.c +++ b/drivers/mtd/nand/raw/davinci_nand.c @@ -29,6 +29,7 @@ */ #include <common.h> +#include <compiler.h> #include <log.h> #include <asm/io.h> #include <nand.h> @@ -37,6 +38,7 @@ #include <linux/errno.h> #include <linux/kernel.h> #include <linux/printk.h> +#include <linux/types.h> /* Definitions for 4-bit hardware ECC */ #define NAND_TIMEOUT 10240 diff --git a/drivers/mtd/nand/raw/denali.c b/drivers/mtd/nand/raw/denali.c index 0e84f37784..92361e637b 100644 --- a/drivers/mtd/nand/raw/denali.c +++ b/drivers/mtd/nand/raw/denali.c @@ -25,6 +25,7 @@ #include <linux/mtd/mtd.h> #include <linux/mtd/rawnand.h> #include <linux/string.h> +#include <linux/types.h> #include "denali.h" diff --git a/drivers/mtd/nand/raw/denali.h b/drivers/mtd/nand/raw/denali.h index 6cd02b2e26..afc0188099 100644 --- a/drivers/mtd/nand/raw/denali.h +++ b/drivers/mtd/nand/raw/denali.h @@ -7,6 +7,7 @@ #ifndef __DENALI_H__ #define __DENALI_H__ +#include <compiler.h> #include <linux/bitops.h> #include <linux/mtd/rawnand.h> #include <linux/types.h> diff --git a/drivers/mtd/nand/raw/denali_spl.c b/drivers/mtd/nand/raw/denali_spl.c index ed077fd06b..ad164139ed 100644 --- a/drivers/mtd/nand/raw/denali_spl.c +++ b/drivers/mtd/nand/raw/denali_spl.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <compiler.h> #include <log.h> #include <asm/io.h> #include <asm/unaligned.h> @@ -13,6 +14,7 @@ #include <linux/kernel.h> #include <linux/mtd/rawnand.h> #include <linux/string.h> +#include <linux/types.h> #include "denali.h" #define DENALI_MAP01 (1 << 26) /* read/write pages in PIO */ diff --git a/drivers/mtd/nand/raw/fsl_elbc_nand.c b/drivers/mtd/nand/raw/fsl_elbc_nand.c index eb95cb0030..0c0b1dec55 100644 --- a/drivers/mtd/nand/raw/fsl_elbc_nand.c +++ b/drivers/mtd/nand/raw/fsl_elbc_nand.c @@ -9,12 +9,14 @@ #include <common.h> #include <command.h> +#include <compiler.h> #include <malloc.h> #include <nand.h> #include <stdio.h> #include <time.h> #include <dm/devres.h> #include <linux/kernel.h> +#include <linux/types.h> #include <linux/mtd/mtd.h> #include <linux/mtd/rawnand.h> diff --git a/drivers/mtd/nand/raw/fsl_elbc_spl.c b/drivers/mtd/nand/raw/fsl_elbc_spl.c index e8b9f40f3b..0564d270e0 100644 --- a/drivers/mtd/nand/raw/fsl_elbc_spl.c +++ b/drivers/mtd/nand/raw/fsl_elbc_spl.c @@ -15,6 +15,7 @@ #include <asm/io.h> #include <asm/fsl_lbc.h> #include <nand.h> +#include <linux/types.h> #ifdef CONFIG_MPC83xx #include "../../../arch/powerpc/cpu/mpc83xx/elbc/elbc.h" diff --git a/drivers/mtd/nand/raw/fsl_ifc_nand.c b/drivers/mtd/nand/raw/fsl_ifc_nand.c index 291dda8fb4..720f8fcbd3 100644 --- a/drivers/mtd/nand/raw/fsl_ifc_nand.c +++ b/drivers/mtd/nand/raw/fsl_ifc_nand.c @@ -8,12 +8,14 @@ #include <common.h> #include <command.h> +#include <compiler.h> #include <malloc.h> #include <nand.h> #include <stdio.h> #include <time.h> #include <dm/devres.h> #include <linux/kernel.h> +#include <linux/types.h> #include <linux/mtd/mtd.h> #include <linux/mtd/rawnand.h> diff --git a/drivers/mtd/nand/raw/fsl_ifc_spl.c b/drivers/mtd/nand/raw/fsl_ifc_spl.c index cf09fce3fb..180fa82ddb 100644 --- a/drivers/mtd/nand/raw/fsl_ifc_spl.c +++ b/drivers/mtd/nand/raw/fsl_ifc_spl.c @@ -16,6 +16,7 @@ #ifdef CONFIG_CHAIN_OF_TRUST #include <fsl_validate.h> #endif +#include <linux/types.h> static inline int is_blank(uchar *addr, int page_size) { diff --git a/drivers/mtd/nand/raw/fsl_upm.c b/drivers/mtd/nand/raw/fsl_upm.c index 6c86a7e767..be9d40a07a 100644 --- a/drivers/mtd/nand/raw/fsl_upm.c +++ b/drivers/mtd/nand/raw/fsl_upm.c @@ -6,6 +6,7 @@ * Anton Vorontsov <avorontsov@ru.mvista.com> */ +#include <compiler.h> #include <config.h> #include <common.h> #include <log.h> @@ -15,6 +16,7 @@ #include <linux/mtd/mtd.h> #include <linux/mtd/fsl_upm.h> #include <nand.h> +#include <linux/types.h> static void fsl_upm_start_pattern(struct fsl_upm *upm, u32 pat_offset) { diff --git a/drivers/mtd/nand/raw/fsmc_nand.c b/drivers/mtd/nand/raw/fsmc_nand.c index 5994c321ca..8fcf00f910 100644 --- a/drivers/mtd/nand/raw/fsmc_nand.c +++ b/drivers/mtd/nand/raw/fsmc_nand.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <compiler.h> #include <nand.h> #include <stdio.h> #include <time.h> @@ -20,6 +21,7 @@ #include <linux/mtd/fsmc_nand.h> #include <asm/arch/hardware.h> #include <linux/string.h> +#include <linux/types.h> static u32 fsmc_version; static struct fsmc_regs *const fsmc_regs_p = (struct fsmc_regs *) diff --git a/drivers/mtd/nand/raw/kb9202_nand.c b/drivers/mtd/nand/raw/kb9202_nand.c index 0f68f1cd86..4b759dd25e 100644 --- a/drivers/mtd/nand/raw/kb9202_nand.c +++ b/drivers/mtd/nand/raw/kb9202_nand.c @@ -11,6 +11,7 @@ #include <asm/io.h> #include <asm/arch/AT91RM9200.h> #include <asm/arch/hardware.h> +#include <linux/types.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/kirkwood_nand.c b/drivers/mtd/nand/raw/kirkwood_nand.c index 0757fa840b..6b0cd581ea 100644 --- a/drivers/mtd/nand/raw/kirkwood_nand.c +++ b/drivers/mtd/nand/raw/kirkwood_nand.c @@ -10,6 +10,7 @@ #include <asm/arch/soc.h> #include <asm/arch/mpp.h> #include <nand.h> +#include <asm/types.h> /* NAND Flash Soc registers */ struct kwnandf_registers { diff --git a/drivers/mtd/nand/raw/kmeter1_nand.c b/drivers/mtd/nand/raw/kmeter1_nand.c index cf33f2863e..c2252464ad 100644 --- a/drivers/mtd/nand/raw/kmeter1_nand.c +++ b/drivers/mtd/nand/raw/kmeter1_nand.c @@ -8,6 +8,7 @@ #include <nand.h> #include <asm/io.h> #include <linux/delay.h> +#include <linux/types.h> #define CONFIG_NAND_MODE_REG (void *)(CONFIG_SYS_NAND_BASE + 0x20000) #define CONFIG_NAND_DATA_REG (void *)(CONFIG_SYS_NAND_BASE + 0x30000) diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c index 368ce3e54e..af93baf38b 100644 --- a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c +++ b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c @@ -13,6 +13,8 @@ * * Consequently, pages with meaningful in-band data are written with * blank (all-ones) out-of-band data and a valid ECC, and any later +#include <compiler.h> +#include <linux/types.h> * out-of-band data write will void the ECC. * * Therefore, code which reads such late-written out-of-band data diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c index 07a44a565a..018acbdf8a 100644 --- a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c +++ b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c @@ -11,6 +11,7 @@ */ #include <common.h> +#include <compiler.h> #include <log.h> #include <nand.h> #include <linux/bug.h> @@ -24,6 +25,7 @@ #include <asm/arch/dma.h> #include <asm/arch/cpu.h> #include <linux/printk.h> +#include <linux/types.h> struct lpc32xx_nand_slc_regs { u32 data; diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c index f012f7329c..61da84f7e7 100644 --- a/drivers/mtd/nand/raw/mxc_nand.c +++ b/drivers/mtd/nand/raw/mxc_nand.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <compiler.h> #include <log.h> #include <nand.h> #include <linux/delay.h> @@ -18,6 +19,7 @@ #include <linux/errno.h> #include <linux/kernel.h> #include <linux/printk.h> +#include <linux/types.h> #include "mxc_nand.h" #define DRIVER_NAME "mxc_nand" diff --git a/drivers/mtd/nand/raw/mxc_nand.h b/drivers/mtd/nand/raw/mxc_nand.h index 1c7f3a2e22..fd008b294b 100644 --- a/drivers/mtd/nand/raw/mxc_nand.h +++ b/drivers/mtd/nand/raw/mxc_nand.h @@ -43,6 +43,7 @@ #else #error "MXC NFC implementation not supported" #endif +#include <asm/types.h> #define is_mxc_nfc_3() is_mxc_nfc_32() #if defined(MXC_NFC_V1) diff --git a/drivers/mtd/nand/raw/mxc_nand_spl.c b/drivers/mtd/nand/raw/mxc_nand_spl.c index c3e136899f..22bd476479 100644 --- a/drivers/mtd/nand/raw/mxc_nand_spl.c +++ b/drivers/mtd/nand/raw/mxc_nand_spl.c @@ -17,6 +17,7 @@ #include <asm/io.h> #include <linux/errno.h> #include <linux/kernel.h> +#include <linux/types.h> #include "mxc_nand.h" #if defined(MXC_NFC_V1) || defined(MXC_NFC_V2_1) diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c index 8ab4dab32c..d6e1273a74 100644 --- a/drivers/mtd/nand/raw/mxs_nand.c +++ b/drivers/mtd/nand/raw/mxs_nand.c @@ -16,6 +16,7 @@ #include <common.h> #include <cpu_func.h> #include <dm.h> +#include <stdbool.h> #include <stdio.h> #include <asm/cache.h> #include <linux/kernel.h> diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c index 0fe538e7d6..e7e5683d90 100644 --- a/drivers/mtd/nand/raw/mxs_nand_spl.c +++ b/drivers/mtd/nand/raw/mxs_nand_spl.c @@ -17,6 +17,7 @@ #include <linux/err.h> #include <linux/errno.h> #include <linux/string.h> +#include <linux/types.h> static struct mtd_info *mtd; static struct nand_chip nand_chip; diff --git a/drivers/mtd/nand/raw/nand.c b/drivers/mtd/nand/raw/nand.c index 486c1b4a8b..b43f3f5d9c 100644 --- a/drivers/mtd/nand/raw/nand.c +++ b/drivers/mtd/nand/raw/nand.c @@ -6,11 +6,13 @@ */ #include <common.h> +#include <compiler.h> #include <nand.h> #include <errno.h> #include <vsprintf.h> #include <linux/errno.h> #include <linux/mtd/concat.h> +#include <linux/types.h> #ifndef CONFIG_SYS_NAND_BASE_LIST #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE } diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 115f5a771b..79e872b0ca 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -34,6 +34,7 @@ #endif #include <log.h> #include <malloc.h> +#include <stdbool.h> #include <time.h> #include <watchdog.h> #include <asm/global_data.h> @@ -55,6 +56,7 @@ #include <linux/errno.h> #include <linux/printk.h> #include <linux/string.h> +#include <linux/types.h> /* Define default oob placement schemes for large and small page devices */ #ifndef CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT diff --git a/drivers/mtd/nand/raw/nand_bbt.c b/drivers/mtd/nand/raw/nand_bbt.c index 22454253f3..98d8db5bfc 100644 --- a/drivers/mtd/nand/raw/nand_bbt.c +++ b/drivers/mtd/nand/raw/nand_bbt.c @@ -71,6 +71,7 @@ #include <linux/bitops.h> #include <linux/printk.h> #include <linux/string.h> +#include <linux/types.h> #define BBT_BLOCK_GOOD 0x00 #define BBT_BLOCK_WORN 0x01 diff --git a/drivers/mtd/nand/raw/nand_ecc.c b/drivers/mtd/nand/raw/nand_ecc.c index 2bc329be1a..d31fd2d0c4 100644 --- a/drivers/mtd/nand/raw/nand_ecc.c +++ b/drivers/mtd/nand/raw/nand_ecc.c @@ -23,6 +23,7 @@ */ #include <common.h> +#include <linux/types.h> #include <linux/errno.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/nand/raw/nand_spl_loaders.c b/drivers/mtd/nand/raw/nand_spl_loaders.c index 75ded89893..08797e0d40 100644 --- a/drivers/mtd/nand/raw/nand_spl_loaders.c +++ b/drivers/mtd/nand/raw/nand_spl_loaders.c @@ -1,5 +1,6 @@ #include <linux/kernel.h> #include <linux/string.h> +#include <linux/types.h> int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst) { unsigned int block, lastblock; diff --git a/drivers/mtd/nand/raw/nand_spl_simple.c b/drivers/mtd/nand/raw/nand_spl_simple.c index 09e053541a..1f1261fd94 100644 --- a/drivers/mtd/nand/raw/nand_spl_simple.c +++ b/drivers/mtd/nand/raw/nand_spl_simple.c @@ -5,9 +5,11 @@ */ #include <common.h> +#include <compiler.h> #include <nand.h> #include <asm/io.h> #include <linux/mtd/nand_ecc.h> +#include <linux/types.h> static int nand_ecc_pos[] = CONFIG_SYS_NAND_ECCPOS; static struct mtd_info *mtd; diff --git a/drivers/mtd/nand/raw/nand_util.c b/drivers/mtd/nand/raw/nand_util.c index f753970d9e..95169503c2 100644 --- a/drivers/mtd/nand/raw/nand_util.c +++ b/drivers/mtd/nand/raw/nand_util.c @@ -30,6 +30,7 @@ #include <dm/devres.h> #include <linux/kernel.h> #include <linux/string.h> +#include <linux/types.h> #include <linux/errno.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/nand/raw/omap_elm.c b/drivers/mtd/nand/raw/omap_elm.c index 87368743a9..87dd2feccd 100644 --- a/drivers/mtd/nand/raw/omap_elm.c +++ b/drivers/mtd/nand/raw/omap_elm.c @@ -15,6 +15,7 @@ #include <common.h> #include <stdio.h> #include <asm/io.h> +#include <asm/types.h> #include <linux/errno.h> #include <linux/mtd/omap_elm.h> #include <asm/arch/hardware.h> diff --git a/drivers/mtd/nand/raw/omap_gpmc.c b/drivers/mtd/nand/raw/omap_gpmc.c index 2863b1de1b..f83cee1421 100644 --- a/drivers/mtd/nand/raw/omap_gpmc.c +++ b/drivers/mtd/nand/raw/omap_gpmc.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <compiler.h> #include <log.h> #include <stdio.h> #include <asm/io.h> @@ -17,6 +18,7 @@ #include <nand.h> #include <linux/mtd/omap_elm.h> #include <linux/string.h> +#include <linux/types.h> #define BADBLOCK_MARKER_LENGTH 2 #define SECTOR_BYTES 512 diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c index 8678866d3d..7287cc32f4 100644 --- a/drivers/mtd/nand/raw/pxa3xx_nand.c +++ b/drivers/mtd/nand/raw/pxa3xx_nand.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <compiler.h> #include <malloc.h> #include <fdtdec.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.h b/drivers/mtd/nand/raw/pxa3xx_nand.h index d7304d0b34..5d8c886855 100644 --- a/drivers/mtd/nand/raw/pxa3xx_nand.h +++ b/drivers/mtd/nand/raw/pxa3xx_nand.h @@ -4,6 +4,7 @@ #include <stdbool.h> #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> +#include <linux/types.h> struct pxa3xx_nand_timing { unsigned int tCH; /* Enable signal hold time */ diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/raw/stm32_fmc2_nand.c index e5dbb970f1..fe4c8a0889 100644 --- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c +++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c @@ -6,10 +6,13 @@ #include <common.h> #include <clk.h> +#include <compiler.h> #include <dm.h> #include <log.h> #include <nand.h> #include <reset.h> +#include <stdbool.h> +#include <asm/types.h> #include <linux/bitfield.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand.c b/drivers/mtd/nand/raw/sunxi_nand.c index 025f18ad49..4d17d13861 100644 --- a/drivers/mtd/nand/raw/sunxi_nand.c +++ b/drivers/mtd/nand/raw/sunxi_nand.c @@ -25,10 +25,12 @@ */ #include <common.h> +#include <compiler.h> #include <fdtdec.h> #include <malloc.h> #include <memalign.h> #include <nand.h> +#include <stdbool.h> #include <time.h> #include <asm/global_data.h> #include <dm/device_compat.h> @@ -39,6 +41,7 @@ #include <linux/errno.h> #include <linux/printk.h> #include <linux/string.h> +#include <linux/types.h> #include <linux/kernel.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c index e24bd384c2..7ad486c5db 100644 --- a/drivers/mtd/nand/raw/sunxi_nand_spl.c +++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c @@ -4,6 +4,7 @@ * Copyright (c) 2015, AW-SOM Technologies <www.aw-som.com> */ +#include <stdbool.h> #include <stdio.h> #include <asm/arch/clock.h> #include <asm/io.h> @@ -16,6 +17,7 @@ #include <linux/errno.h> #include <linux/kernel.h> #include <linux/string.h> +#include <linux/types.h> /* registers */ #define NFC_CTL 0x00000000 diff --git a/drivers/mtd/nand/raw/tegra_nand.c b/drivers/mtd/nand/raw/tegra_nand.c index ace59249b9..c8a31f2968 100644 --- a/drivers/mtd/nand/raw/tegra_nand.c +++ b/drivers/mtd/nand/raw/tegra_nand.c @@ -26,6 +26,7 @@ #include <dm.h> #include <linux/printk.h> #include <linux/string.h> +#include <linux/types.h> #include "tegra_nand.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/mtd/nand/raw/tegra_nand.h b/drivers/mtd/nand/raw/tegra_nand.h index 7740160661..e65a36851c 100644 --- a/drivers/mtd/nand/raw/tegra_nand.h +++ b/drivers/mtd/nand/raw/tegra_nand.h @@ -4,6 +4,7 @@ */ /* register offset */ +#include <asm/types.h> #define COMMAND_0 0x00 #define CMD_GO (1 << 31) #define CMD_CLE (1 << 30) diff --git a/drivers/mtd/nand/raw/vf610_nfc.c b/drivers/mtd/nand/raw/vf610_nfc.c index 49cf29a7ab..df86cc6b48 100644 --- a/drivers/mtd/nand/raw/vf610_nfc.c +++ b/drivers/mtd/nand/raw/vf610_nfc.c @@ -22,6 +22,7 @@ */ #include <common.h> +#include <compiler.h> #include <malloc.h> #include <stdio.h> #include <time.h> @@ -30,6 +31,7 @@ #include <linux/kernel.h> #include <linux/printk.h> #include <linux/string.h> +#include <linux/types.h> #include <linux/mtd/mtd.h> #include <linux/mtd/rawnand.h> diff --git a/drivers/mtd/nand/raw/zynq_nand.c b/drivers/mtd/nand/raw/zynq_nand.c index 6af6b7bd84..2b177a4cf8 100644 --- a/drivers/mtd/nand/raw/zynq_nand.c +++ b/drivers/mtd/nand/raw/zynq_nand.c @@ -7,10 +7,13 @@ */ #include <common.h> +#include <compiler.h> #include <log.h> #include <malloc.h> +#include <stdbool.h> #include <stdio.h> #include <asm/io.h> +#include <asm/types.h> #include <linux/delay.h> #include <linux/errno.h> #include <nand.h> diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 99622a335a..123cb6dc12 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -24,6 +24,7 @@ #include <errno.h> #include <spi.h> #include <spi-mem.h> +#include <stdbool.h> #include <time.h> #include <vsprintf.h> #include <dm/device_compat.h> @@ -34,6 +35,7 @@ #include <linux/mtd/spinand.h> #include <linux/printk.h> #include <linux/string.h> +#include <linux/types.h> #endif /* SPI NAND index visible in MTD names */ diff --git a/drivers/mtd/nand/spi/gigadevice.c b/drivers/mtd/nand/spi/gigadevice.c index 465f18642b..c291f02b9b 100644 --- a/drivers/mtd/nand/spi/gigadevice.c +++ b/drivers/mtd/nand/spi/gigadevice.c @@ -11,6 +11,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <asm/types.h> #include <linux/errno.h> #include <linux/mtd/spinand.h> diff --git a/drivers/mtd/nand/spi/macronix.c b/drivers/mtd/nand/spi/macronix.c index 83f9daaf57..0929d2b5dc 100644 --- a/drivers/mtd/nand/spi/macronix.c +++ b/drivers/mtd/nand/spi/macronix.c @@ -10,6 +10,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <asm/types.h> #include <linux/bug.h> #include <linux/errno.h> #include <linux/mtd/spinand.h> diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c index 5fde4a78d2..b2978b59a1 100644 --- a/drivers/mtd/nand/spi/micron.c +++ b/drivers/mtd/nand/spi/micron.c @@ -11,6 +11,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <asm/types.h> #include <linux/bitops.h> #include <linux/errno.h> #include <linux/mtd/spinand.h> diff --git a/drivers/mtd/nand/spi/toshiba.c b/drivers/mtd/nand/spi/toshiba.c index d0b003d295..6895f36480 100644 --- a/drivers/mtd/nand/spi/toshiba.c +++ b/drivers/mtd/nand/spi/toshiba.c @@ -11,6 +11,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <asm/types.h> #include <linux/bug.h> #include <linux/errno.h> #include <linux/mtd/spinand.h> diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c index 4e1c8883b3..ac7fc3d131 100644 --- a/drivers/mtd/nand/spi/winbond.c +++ b/drivers/mtd/nand/spi/winbond.c @@ -12,6 +12,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <asm/types.h> #include <linux/bitops.h> #include <linux/errno.h> #include <linux/mtd/spinand.h> |