]> www.infradead.org Git - users/hch/misc.git/commit
mtd: nand: Drop explicit test for built-in CONFIG_SPI_QPIC_SNAND
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 28 Mar 2025 08:24:01 +0000 (09:24 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 7 Apr 2025 07:01:58 +0000 (09:01 +0200)
commit36c6468724aa98d33fea9a1d7e07ddda6302f5d4
treede325e3fecc54d1dd620f750e1b8c39c4fa8c103
parent0af2f6be1b4281385b618cb86ad946eded089ac8
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: 7304d1909080ef0c ("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>
drivers/mtd/nand/Makefile