mace: Fix build for mace due to netdev_alloc_skb
authorPradeep A. Dalvi <netdev@pradeepdalvi.com>
Wed, 8 Feb 2012 00:03:15 +0000 (00:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2012 20:23:52 +0000 (15:23 -0500)
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: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Pradeep A Dalvi <netdev@pradeepdalvi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apple/mace.c

index 06998462e0d313887e92260a5e31a9b323190b25..e1df4b76c8850bab2d3a4af5f8e08b1a7def77eb 100644 (file)
@@ -956,7 +956,7 @@ static irqreturn_t mace_rxdma_intr(int irq, void *dev_id)
        cp = mp->rx_cmds + i;
        skb = mp->rx_bufs[i];
        if (!skb) {
-           skb = netdev_alloc_skb(RX_BUFLEN + 2);
+           skb = netdev_alloc_skb(dev, RX_BUFLEN + 2);
            if (skb) {
                skb_reserve(skb, 2);
                mp->rx_bufs[i] = skb;