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

net: Remove two unnecessary exports (skbuff).

There is no need to export skb_under_panic() and skb_over_panic() in
skbuff.c, since these methods are used only in skbuff.c ; this patch
removes these two exports. It also marks these functions as 'static'
and removeS the extern declarations of them from
include/linux/skbuff.h

Signed-off-by: Rami Rosen <ramirose@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Rami Rosen and committed by
David S. Miller
ccb7c773 0eae88f3

+2 -8
-4
include/linux/skbuff.h
··· 470 470 struct sk_buff **trailer); 471 471 extern int skb_pad(struct sk_buff *skb, int pad); 472 472 #define dev_kfree_skb(a) consume_skb(a) 473 - extern void skb_over_panic(struct sk_buff *skb, int len, 474 - void *here); 475 - extern void skb_under_panic(struct sk_buff *skb, int len, 476 - void *here); 477 473 478 474 extern int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb, 479 475 int getfrag(void *from, char *to, int offset,
+2 -4
net/core/skbuff.c
··· 117 117 * 118 118 * Out of line support code for skb_put(). Not user callable. 119 119 */ 120 - void skb_over_panic(struct sk_buff *skb, int sz, void *here) 120 + static void skb_over_panic(struct sk_buff *skb, int sz, void *here) 121 121 { 122 122 printk(KERN_EMERG "skb_over_panic: text:%p len:%d put:%d head:%p " 123 123 "data:%p tail:%#lx end:%#lx dev:%s\n", ··· 126 126 skb->dev ? skb->dev->name : "<NULL>"); 127 127 BUG(); 128 128 } 129 - EXPORT_SYMBOL(skb_over_panic); 130 129 131 130 /** 132 131 * skb_under_panic - private function ··· 136 137 * Out of line support code for skb_push(). Not user callable. 137 138 */ 138 139 139 - void skb_under_panic(struct sk_buff *skb, int sz, void *here) 140 + static void skb_under_panic(struct sk_buff *skb, int sz, void *here) 140 141 { 141 142 printk(KERN_EMERG "skb_under_panic: text:%p len:%d put:%d head:%p " 142 143 "data:%p tail:%#lx end:%#lx dev:%s\n", ··· 145 146 skb->dev ? skb->dev->name : "<NULL>"); 146 147 BUG(); 147 148 } 148 - EXPORT_SYMBOL(skb_under_panic); 149 149 150 150 /* Allocate a new skbuff. We do this ourselves so we can fill in a few 151 151 * 'private' fields and also do memory statistics to find all the