]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mtd: nand: realtek-ecc: Fix Kconfig dependencies
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 19 Nov 2025 19:33:57 +0000 (20:33 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 27 Nov 2025 17:25:05 +0000 (18:25 +0100)
The driver uses DMA but does not mark it as a prerequisite in
Kconfig. As it is also defined with COMPILE_TEST, autobuilders complain
about certain symbols not being available when linking on architectures
without DMA support (?) like sh.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511071114.8WeW2GZK-lkp@intel.com
Cc: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/Kconfig

index 4a17271076bc1c4a64278e152c6aa5362b684889..1e57c8de857825d7ff87519b5b0d9a768aa293cc 100644 (file)
@@ -63,7 +63,7 @@ config MTD_NAND_ECC_MEDIATEK
 
 config MTD_NAND_ECC_REALTEK
         tristate "Realtek RTL93xx hardware ECC engine"
-        depends on HAS_IOMEM
+        depends on HAS_IOMEM && HAS_DMA
         depends on MACH_REALTEK_RTL || COMPILE_TEST
         select MTD_NAND_ECC
         help