diff options
author | Pradeep A. Dalvi <netdev@pradeepdalvi.com> | 2012-02-07 19:03:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-08 15:23:52 -0500 |
commit | 31a4c8b82788fa369c709bb3366c8b90c77c0dee (patch) | |
tree | df0b6cd42cb0e43e08e4c4258260e41247f1d0c1 /drivers/net/ethernet/apple | |
parent | 7280f5ae0d71f2259a42d1f7603480809e4867fb (diff) |
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: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Pradeep A Dalvi <netdev@pradeepdalvi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/apple')
-rw-r--r-- | drivers/net/ethernet/apple/mace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/apple/mace.c b/drivers/net/ethernet/apple/mace.c index 06998462e0d3..e1df4b76c885 100644 --- a/drivers/net/ethernet/apple/mace.c +++ b/drivers/net/ethernet/apple/mace.c | |||
@@ -956,7 +956,7 @@ static irqreturn_t mace_rxdma_intr(int irq, void *dev_id) | |||
956 | cp = mp->rx_cmds + i; | 956 | cp = mp->rx_cmds + i; |
957 | skb = mp->rx_bufs[i]; | 957 | skb = mp->rx_bufs[i]; |
958 | if (!skb) { | 958 | if (!skb) { |
959 | skb = netdev_alloc_skb(RX_BUFLEN + 2); | 959 | skb = netdev_alloc_skb(dev, RX_BUFLEN + 2); |
960 | if (skb) { | 960 | if (skb) { |
961 | skb_reserve(skb, 2); | 961 | skb_reserve(skb, 2); |
962 | mp->rx_bufs[i] = skb; | 962 | mp->rx_bufs[i] = skb; |