• Geert Uytterhoeven's avatar
    net/ethernet: MACB should depend on HAS_DMA · 822bc329
    Geert Uytterhoeven authored
    If NO_DMA=y:
    
    drivers/built-in.o: In function `macb_free_consistent':
    drivers/net/ethernet/cadence/macb.c:878: undefined reference to `dma_free_coherent'
    drivers/net/ethernet/cadence/macb.c:883: undefined reference to `dma_free_coherent'
    drivers/net/ethernet/cadence/macb.c:888: undefined reference to `dma_free_coherent'
    drivers/built-in.o: In function `macb_alloc_consistent':
    drivers/net/ethernet/cadence/macb.c:905: undefined reference to `dma_alloc_coherent'
    drivers/built-in.o: In function `macb_tx_interrupt':
    drivers/net/ethernet/cadence/macb.c:515: undefined reference to `dma_unmap_single'
    drivers/built-in.o: In function `macb_tx_error_task':
    drivers/net/ethernet/cadence/macb.c:457: undefined reference to `dma_unmap_single'
    drivers/built-in.o: In function `macb_start_xmit':
    drivers/net/ethernet/cadence/macb.c:838: undefined reference to `dma_map_single'
    Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
    Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
    Cc: David S. Miller <davem@davemloft.net>
    Cc: netdev@vger.kernel.org
    Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    822bc329
Kconfig 1.36 KB