Skip to content

Commit

Permalink
mace: Fix build for mace due to netdev_alloc_skb
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pradeep A. Dalvi authored and David S. Miller committed Feb 8, 2012
1 parent 7280f5a commit 31a4c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/apple/mace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 31a4c8b

Please sign in to comment.