linux-stable/drivers/mtd/spi-nor
Arnd Bergmann d19ab1f785 mtd: cfi: allow building spi-intel standalone
When MTD or MTD_CFI_GEOMETRY is disabled, the spi-intel driver
fails to build, as it includes the shared CFI header:

include/linux/mtd/cfi.h:62:2: error: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-Werror=cpp]
   62 | #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.

linux/mtd/spi-nor.h does not actually need to include cfi.h, so
remove the inclusion here to fix the warning. This uncovers a
missing #include in spi-nor/core.c so add that there to
prevent a different build issue.

Fixes: e23e5a05d1 ("mtd: spi-nor: intel-spi: Convert to SPI MEM")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Tokunori Ikegami <ikegami.t@gmail.com>
Acked-by: Pratyush Yadav <pratyush@kernel.org>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221220141352.1486360-1-arnd@kernel.org
2023-01-02 12:08:53 +01:00
..
controllers mtd: spi-nor: s/addr_width/addr_nbytes 2022-07-28 05:11:56 +03:00
Kconfig mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
Makefile mtd: spi-nor: expose internal parameters via debugfs 2022-05-09 16:55:22 +05:30
atmel.c mtd: spi-nor: atmel: unify function names 2022-02-25 09:44:31 +02:00
catalyst.c mtd: spi-nor: catalyst: unify function names 2022-02-25 09:44:31 +02:00
core.c mtd: cfi: allow building spi-intel standalone 2023-01-02 12:08:53 +01:00
core.h mtd: spi-nor: add SFDP fixups for Quad Page Program 2022-11-22 08:19:01 +02:00
debugfs.c mtd: spi-nor: remember full JEDEC flash ID 2022-11-21 15:37:15 +02:00
eon.c mtd: spi-nor: support eon en25qh256a variant 2022-05-09 16:58:24 +05:30
esmt.c mtd: spi-nor: esmt: Use correct name of f25l32qa 2022-07-19 13:05:31 +03:00
everspin.c mtd: spi-nor: everspin: unify function names 2022-02-25 09:44:31 +02:00
fujitsu.c mtd: spi-nor: fujitsu: unify function names 2022-02-25 09:44:31 +02:00
gigadevice.c mtd: spi-nor: gigadevice: gd25q256: replace gd25q256_default_init with gd25q256_post_bfpt 2022-11-21 16:27:10 +02:00
intel.c mtd: spi-nor: intel: unify function names 2022-02-25 09:44:31 +02:00
issi.c mtd: spi-nor: add SFDP fixups for Quad Page Program 2022-11-22 08:19:01 +02:00
macronix.c mtd: spi-nor: macronix: unify function names 2022-02-25 09:44:31 +02:00
micron-st.c mtd: spi-nor: micron-st: Enable locking for mt25qu256a 2022-11-21 17:10:08 +02:00
otp.c mtd: spi-nor: s/addr_width/addr_nbytes 2022-07-28 05:11:56 +03:00
sfdp.c mtd: spi-nor: Fix formatting in spi_nor_read_raw() kerneldoc comment 2022-11-21 15:53:28 +02:00
sfdp.h mtd: spi-nor: move function declaration out of sfdp.h 2022-11-21 15:37:16 +02:00
spansion.c mtd: spi-nor: spansion: Replace hardcoded values for addr_nbytes/addr_mode_nbytes 2022-10-25 05:11:35 +03:00
sst.c mtd: spi-nor: sst: unify function names 2022-02-25 09:44:32 +02:00
swp.c mtd: spi-nor: Introduce spi_nor_set_mtd_info() 2021-12-07 17:05:10 +02:00
sysfs.c mtd: spi-nor: sysfs: print JEDEC ID for generic flash driver 2022-11-21 15:37:16 +02:00
winbond.c mtd: spi-nor: winbond: add support for W25Q512NW-IQ 2022-11-21 17:18:44 +02:00
xilinx.c mtd: spi-nor: s/addr_width/addr_nbytes 2022-07-28 05:11:56 +03:00
xmc.c mtd: spi-nor: xmc: unify function names 2022-02-25 09:44:32 +02:00