[PATCH] mtd: fsl-quadspi: Include <linux/sizes.h> to avoid build error
Brian Norris
computersforpeace at gmail.com
Wed Oct 14 09:26:36 PDT 2015
On Wed, Oct 14, 2015 at 12:39:44AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam at freescale.com>
>
> Building for x86 results in the following build errors:
>
> drivers/mtd/spi-nor/fsl-quadspi.c: In function 'fsl_qspi_init_lut':
> >> drivers/mtd/spi-nor/fsl-quadspi.c:355:21: error: 'SZ_16M' undeclared (first use in this function)
> if (q->nor_size <= SZ_16M) {
> ^
> drivers/mtd/spi-nor/fsl-quadspi.c:355:21: note: each undeclared identifier is reported only once for each function it appears in
> drivers/mtd/spi-nor/fsl-quadspi.c: In function 'fsl_qspi_read':
> >> drivers/mtd/spi-nor/fsl-quadspi.c:208:27: error: 'SZ_4M' undeclared (first use in this function)
> #define QUADSPI_MIN_IOMAP SZ_4M
> ^
> >> drivers/mtd/spi-nor/fsl-quadspi.c:845:25: note: in expansion of macro 'QUADSPI_MIN_IOMAP'
> q->memmap_len = len > QUADSPI_MIN_IOMAP ? len : QUADSPI_MIN_IOMAP;
>
> Explicitly include <linux/sizes.h> to fix the problem.
>
> Reported-by: kbuild test robot <fengguang.wu at intel.com>
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
Applied to l2-mtd.git. Thanks.
More information about the linux-mtd
mailing list