Skip to content
  • Geert Uytterhoeven's avatar
    mm: Add NO_DMA dummies for DMA pool API · c1ce6c2b
    Geert Uytterhoeven authored
    
    
    Add dummies for dma{,m}_pool_{create,destroy,alloc,free}(), to allow
    compile-testing if NO_DMA=y.
    
    This prevents the following from showing up later:
    
        ERROR: "dma_pool_destroy" [drivers/usb/mtu3/mtu3.ko] undefined!
        ERROR: "dma_pool_free" [drivers/usb/mtu3/mtu3.ko] undefined!
        ERROR: "dma_pool_alloc" [drivers/usb/mtu3/mtu3.ko] undefined!
        ERROR: "dma_pool_create" [drivers/usb/mtu3/mtu3.ko] undefined!
        ERROR: "dma_pool_destroy" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
        ERROR: "dma_pool_free" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
        ERROR: "dma_pool_alloc" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
        ERROR: "dma_pool_create" [drivers/scsi/hisi_sas/hisi_sas_main.ko] undefined!
        ERROR: "dma_pool_alloc" [drivers/mailbox/bcm-pdc-mailbox.ko] undefined!
        ERROR: "dma_pool_free" [drivers/mailbox/bcm-pdc-mailbox.ko] undefined!
        ERROR: "dma_pool_create" [drivers/mailbox/bcm-pdc-mailbox.ko] undefined!
        ERROR: "dma_pool_destroy" [drivers/mailbox/bcm-pdc-mailbox.ko] undefined!
    
    Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
    Reviewed-by: default avatarMark Brown <broonie@kernel.org>
    Acked-by: default avatarRobin Murphy <robin.murphy@arm.com>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    c1ce6c2b