mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-04 08:02:24 +00:00
[PATCH] USB: usbnet printk warning fix
On ppc64: drivers/usb/net/usbnet.c: In function `skb_return': drivers/usb/net/usbnet.c:429: warning: int format, different type arg (arg 3) drivers/usb/net/usbnet.c:429: warning: int format, different type arg (arg 3) Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> diff -puN drivers/usb/net/usbnet.c~usbnet-printk-warning-fix drivers/usb/net/usbnet.c
This commit is contained in:
parent
668a9541a5
commit
403a98176a
@ -426,7 +426,7 @@ static void skb_return (struct usbnet *dev, struct sk_buff *skb)
|
|||||||
dev->stats.rx_bytes += skb->len;
|
dev->stats.rx_bytes += skb->len;
|
||||||
|
|
||||||
if (netif_msg_rx_status (dev))
|
if (netif_msg_rx_status (dev))
|
||||||
devdbg (dev, "< rx, len %d, type 0x%x",
|
devdbg (dev, "< rx, len %zd, type 0x%x",
|
||||||
skb->len + sizeof (struct ethhdr), skb->protocol);
|
skb->len + sizeof (struct ethhdr), skb->protocol);
|
||||||
memset (skb->cb, 0, sizeof (struct skb_data));
|
memset (skb->cb, 0, sizeof (struct skb_data));
|
||||||
status = netif_rx (skb);
|
status = netif_rx (skb);
|
||||||
|
Loading…
Reference in New Issue
Block a user