Skip to content

Commit 36c6468

Browse files
geertumiquelraynal
authored andcommitted
mtd: nand: Drop explicit test for built-in CONFIG_SPI_QPIC_SNAND
If CONFIG_SPI_QPIC_SNAND=m, but CONFIG_MTD_NAND_QCOM=n: ERROR: modpost: "qcom_nandc_unalloc" [drivers/spi/spi-qpic-snand.ko] undefined! ... Fix this by dropping the explicit test for a built-in CONFIG_SPI_QPIC_SNAND completely. Kbuild handles multiple and mixed obj-y/obj-m rules for the same object file fine. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202503280759.XhwLcV7m-lkp@intel.com/ Fixes: 7304d19 ("spi: spi-qpic: add driver for QCOM SPI NAND flash Interface") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 0af2f6b commit 36c6468

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/mtd/nand/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
nandcore-objs := core.o bbt.o
44
obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
55
obj-$(CONFIG_MTD_NAND_ECC_MEDIATEK) += ecc-mtk.o
6-
ifeq ($(CONFIG_SPI_QPIC_SNAND),y)
76
obj-$(CONFIG_SPI_QPIC_SNAND) += qpic_common.o
8-
else
97
obj-$(CONFIG_MTD_NAND_QCOM) += qpic_common.o
10-
endif
118
obj-y += onenand/
129
obj-y += raw/
1310
obj-y += spi/

0 commit comments

Comments
 (0)