AW: [PATCH] mtd: nand: MTD_NAND_ECC_REALTEK should depend on HAS_DMA

markus.stockhausen at gmx.de markus.stockhausen at gmx.de
Wed Oct 8 05:57:10 PDT 2025


> Von: Geert Uytterhoeven <geert at linux-m68k.org> 
> Gesendet: Mittwoch, 8. Oktober 2025 11:47
>
> If CONFIG_NO_DMA=y:
>
>     ERROR: modpost: "dma_free_pages" [drivers/mtd/nand/ecc-realtek.ko]
undefined!
>     ERROR: modpost: "dma_alloc_pages" [drivers/mtd/nand/ecc-realtek.ko]
undefined!
>
> The driver cannot function without DMA, hence fix this by adding a
> dependency on HAS_DMA.
>
> Fixes: 3148d0e5b1c5733d ("mtd: nand: realtek-ecc: Add Realtek external ECC
engine support")
> Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org>

Thank you.





More information about the linux-mtd mailing list