• Geert Uytterhoeven's avatar
    lightnvm: NVM should depend on HAS_DMA · e105ddb4
    Geert Uytterhoeven authored
    If NO_DMA=y:
    
        drivers/built-in.o: In function `nvme_nvm_dev_dma_free':
        lightnvm.c:(.text+0x23df1a): undefined reference to `dma_pool_free'
        drivers/built-in.o: In function `nvme_nvm_dev_dma_alloc':
        lightnvm.c:(.text+0x23df38): undefined reference to `dma_pool_alloc'
        drivers/built-in.o: In function `nvme_nvm_destroy_dma_pool':
        lightnvm.c:(.text+0x23df4c): undefined reference to `dma_pool_destroy'
        drivers/built-in.o: In function `nvme_nvm_create_dma_pool':
        lightnvm.c:(.text+0x23df7e): undefined reference to `dma_pool_create'
    
    and
    
        ERROR: "dma_pool_destroy" [drivers/nvme/host/nvme-core.ko] undefined!
        ERROR: "dma_pool_free" [drivers/nvme/host/nvme-core.ko] undefined!
        ERROR: "dma_pool_alloc" [drivers/nvme/host/nvme-core.ko] undefined!
        ERROR: "dma_pool_create" [drivers/nvme/host/nvme-core.ko] undefined!
    Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
    Signed-off-by: default avatarMatias Bjørling <m@bjorling.me>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    e105ddb4
Kconfig 1.31 KB