net/macb: fix compilation warning for print_hex_dump() called with skb->mac_header
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 11 Dec 2014 10:15:54 +0000 (11:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Dec 2014 19:51:59 +0000 (14:51 -0500)
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c

index 4d9fc0509af68c91cfd7c7e45f5aa3ec96b7bf88..b6bc318b148e34a0e502ab1dd1a8c3fc88583cc3 100644 (file)
@@ -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