Skip to content

Commit 51f8301

Browse files
Cyrille Pitchendavem330
authored andcommitted
net/macb: fix compilation warning for print_hex_dump() called with skb->mac_header
Signed-off-by: Cyrille Pitchen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent efef793 commit 51f8301

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/cadence

1 file changed

+1
-1
lines changed

drivers/net/ethernet/cadence/macb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ static int gem_rx(struct macb *bp, int budget)
776776
netdev_vdbg(bp->dev, "received skb of length %u, csum: %08x\n",
777777
skb->len, skb->csum);
778778
print_hex_dump(KERN_DEBUG, " mac: ", DUMP_PREFIX_ADDRESS, 16, 1,
779-
skb->mac_header, 16, true);
779+
skb_mac_header(skb), 16, true);
780780
print_hex_dump(KERN_DEBUG, "data: ", DUMP_PREFIX_ADDRESS, 16, 1,
781781
skb->data, 32, true);
782782
#endif

0 commit comments

Comments
 (0)