linux/drivers/net/ethernet/sun
Tushar Dave 1a9bbccaf8 sunbmac: Fix compiler warning
sunbmac uses '__u32' for dma handle while invoking kernel DMA APIs,
instead of using dma_addr_t. This hasn't caused any 'incompatible
pointer type' warning on SPARC because until now dma_addr_t is of
type u32. However, recent changes in SPARC ATU (iommu) enables 64bit
DMA and therefore dma_addr_t becomes of type u64. This makes
'incompatible pointer type' warnings inevitable.

e.g.
drivers/net/ethernet/sun/sunbmac.c: In function ‘bigmac_ether_init’:
drivers/net/ethernet/sun/sunbmac.c:1166: warning: passing argument 3 of ‘dma_alloc_coherent’ from incompatible pointer type
./include/linux/dma-mapping.h:445: note: expected ‘dma_addr_t *’ but argument is of type ‘__u32 *’

This patch resolves above compiler warning.

Signed-off-by: Tushar Dave <tushar.n.dave@oracle.com>
Reviewed-by: chris hyser <chris.hyser@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-18 11:18:27 -08:00
..
cassini.c drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
cassini.h
Kconfig ldmvsw: Add ldmvsw.c driver code 2016-03-18 19:33:00 -04:00
ldmvsw.c treewide: remove redundant #include <linux/kconfig.h> 2016-10-11 15:06:33 -07:00
Makefile ldmvsw: Add ldmvsw.c driver code 2016-03-18 19:33:00 -04:00
niu.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
niu.h
sunbmac.c sunbmac: Fix compiler warning 2016-11-18 11:18:27 -08:00
sunbmac.h sunbmac: Fix compiler warning 2016-11-18 11:18:27 -08:00
sungem.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
sungem.h
sunhme.c sungem, sunhme, sunvnet: Update drivers to use dma_wmb/rmb 2015-04-08 12:15:14 -04:00
sunhme.h
sunqe.c sunqe: Fix compiler warnings 2016-11-18 11:18:26 -08:00
sunqe.h sunqe: Fix compiler warnings 2016-11-18 11:18:26 -08:00
sunvnet_common.c ldmvsw: Checkpatch sunvnet.c and sunvnet_common.c 2016-03-18 19:33:01 -04:00
sunvnet_common.h ldmvsw: Make sunvnet_common compatible with ldmvsw 2016-03-18 19:33:00 -04:00
sunvnet.c ldmvsw: Checkpatch sunvnet.c and sunvnet_common.c 2016-03-18 19:33:01 -04:00