Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pradeep A. Dalvi and committed by
David S. Miller
31a4c8b8 7280f5ae

+1 -1
+1 -1
drivers/net/ethernet/apple/mace.c
··· 956 956 cp = mp->rx_cmds + i; 957 957 skb = mp->rx_bufs[i]; 958 958 if (!skb) { 959 - skb = netdev_alloc_skb(RX_BUFLEN + 2); 959 + skb = netdev_alloc_skb(dev, RX_BUFLEN + 2); 960 960 if (skb) { 961 961 skb_reserve(skb, 2); 962 962 mp->rx_bufs[i] = skb;