Re: [PATCH] net/macb: add TX multiqueue support for gem

From: David Miller
Date: Wed Dec 10 2014 - 15:15:57 EST


From: Cyrille Pitchen <cyrille.pitchen@xxxxxxxxx>
Date: Wed, 10 Dec 2014 16:03:51 +0100

> + netdev_vdbg(bp->dev, "macb_tx_error_task: q = %u, t = %u, h = %u\n",
> + queue - bp->queues, queue->tx_tail, queue->tx_head);

This and another change int his patch adds build warnings because
"ptr1 - ptr2" is a ptrdiff_t, which is a long int on some platforms:

drivers/net/ethernet/cadence/macb.c: In function ʽmacb_tx_error_taskʼ:
drivers/net/ethernet/cadence/macb.c:504:2: warning: format ʽ%uʼ expects argument of type ʽunsigned intʼ, but argument 4 has type ʽlong intʼ [-Wformat]
drivers/net/ethernet/cadence/macb.c: In function ʽmacb_interruptʼ:
drivers/net/ethernet/cadence/macb.c:988:3: warning: format ʽ%uʼ expects argument of type ʽunsigned intʼ, but argument 4 has type ʽlong intʼ [-Wformat]