• Arnd Bergmann's avatar
    net: mediatek: use dma_addr_t correctly · 6aab1a62
    Arnd Bergmann authored
    dma_alloc_coherent() expects a dma_addr_t pointer as its argument,
    not an 'unsigned int', and gcc correctly warns about broken
    code in the mtk_init_fq_dma function:
    
    drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_init_fq_dma':
    drivers/net/ethernet/mediatek/mtk_eth_soc.c:463:13: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
    
    This changes the type of the local variable to dma_addr_t.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6aab1a62
mtk_eth_soc.c 42.9 KB