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

[NET]: Remove CONFIG_HAVE_ARCH_DEV_ALLOC_SKB

skbuff.h has an #ifndef CONFIG_HAVE_ARCH_DEV_ALLOC_SKB to allow
architectures to reimplement __dev_alloc_skb. It's not set on any
architecture and now that we have an architecture-overrideable
NET_SKB_PAD there is not point at all to have one either.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Christoph Hellwig and committed by
David S. Miller
37182d1b 6c753c3d

-4
-4
include/linux/skbuff.h
··· 1066 1066 kfree_skb(skb); 1067 1067 } 1068 1068 1069 - #ifndef CONFIG_HAVE_ARCH_DEV_ALLOC_SKB 1070 1069 /** 1071 1070 * __dev_alloc_skb - allocate an skbuff for sending 1072 1071 * @length: length to allocate ··· 1086 1087 skb_reserve(skb, NET_SKB_PAD); 1087 1088 return skb; 1088 1089 } 1089 - #else 1090 - extern struct sk_buff *__dev_alloc_skb(unsigned int length, int gfp_mask); 1091 - #endif 1092 1090 1093 1091 /** 1094 1092 * dev_alloc_skb - allocate an skbuff for sending