From: Cyrille Pitchen Date: Thu, 11 Dec 2014 10:15:54 +0000 (+0100) Subject: net/macb: fix compilation warning for print_hex_dump() called with skb->mac_header X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51f8301485d701caab10e7e9b7f9d7866f2fe3cf;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git net/macb: fix compilation warning for print_hex_dump() called with skb->mac_header Signed-off-by: Cyrille Pitchen Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 4d9fc0509af6..b6bc318b148e 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -776,7 +776,7 @@ static int gem_rx(struct macb *bp, int budget) netdev_vdbg(bp->dev, "received skb of length %u, csum: %08x\n", skb->len, skb->csum); print_hex_dump(KERN_DEBUG, " mac: ", DUMP_PREFIX_ADDRESS, 16, 1, - skb->mac_header, 16, true); + skb_mac_header(skb), 16, true); print_hex_dump(KERN_DEBUG, "data: ", DUMP_PREFIX_ADDRESS, 16, 1, skb->data, 32, true); #endif