Commit 31a4c8b8 authored by Pradeep A. Dalvi's avatar Pradeep A. Dalvi Committed by David S. Miller

mace: Fix build for mace due to netdev_alloc_skb

Refs:
1. pmac32_defconfig
http://kisskb.ellerman.id.au/kisskb/buildresult/5583746/
2. ppc6xx_defconfig
http://kisskb.ellerman.id.au/kisskb/buildresult/5584116/

Confirmed any such occurances from all failed defconfigs &
in net-next sources with
grep -nrs "netdev_alloc_skb" drivers/net/ethernet/ | grep -v ","
Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarPradeep A Dalvi <netdev@pradeepdalvi.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7280f5ae
...@@ -956,7 +956,7 @@ static irqreturn_t mace_rxdma_intr(int irq, void *dev_id) ...@@ -956,7 +956,7 @@ static irqreturn_t mace_rxdma_intr(int irq, void *dev_id)
cp = mp->rx_cmds + i; cp = mp->rx_cmds + i;
skb = mp->rx_bufs[i]; skb = mp->rx_bufs[i];
if (!skb) { if (!skb) {
skb = netdev_alloc_skb(RX_BUFLEN + 2); skb = netdev_alloc_skb(dev, RX_BUFLEN + 2);
if (skb) { if (skb) {
skb_reserve(skb, 2); skb_reserve(skb, 2);
mp->rx_bufs[i] = skb; mp->rx_bufs[i] = skb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment