Commit ccb7c773 authored by Rami Rosen's avatar Rami Rosen Committed by David S. Miller

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: default avatarRami Rosen <ramirose@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0eae88f3
...@@ -470,10 +470,6 @@ extern int skb_cow_data(struct sk_buff *skb, int tailbits, ...@@ -470,10 +470,6 @@ extern int skb_cow_data(struct sk_buff *skb, int tailbits,
struct sk_buff **trailer); struct sk_buff **trailer);
extern int skb_pad(struct sk_buff *skb, int pad); extern int skb_pad(struct sk_buff *skb, int pad);
#define dev_kfree_skb(a) consume_skb(a) #define dev_kfree_skb(a) consume_skb(a)
extern void skb_over_panic(struct sk_buff *skb, int len,
void *here);
extern void skb_under_panic(struct sk_buff *skb, int len,
void *here);
extern int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb, extern int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb,
int getfrag(void *from, char *to, int offset, int getfrag(void *from, char *to, int offset,
......
...@@ -117,7 +117,7 @@ static const struct pipe_buf_operations sock_pipe_buf_ops = { ...@@ -117,7 +117,7 @@ static const struct pipe_buf_operations sock_pipe_buf_ops = {
* *
* Out of line support code for skb_put(). Not user callable. * Out of line support code for skb_put(). Not user callable.
*/ */
void skb_over_panic(struct sk_buff *skb, int sz, void *here) static void skb_over_panic(struct sk_buff *skb, int sz, void *here)
{ {
printk(KERN_EMERG "skb_over_panic: text:%p len:%d put:%d head:%p " printk(KERN_EMERG "skb_over_panic: text:%p len:%d put:%d head:%p "
"data:%p tail:%#lx end:%#lx dev:%s\n", "data:%p tail:%#lx end:%#lx dev:%s\n",
...@@ -126,7 +126,6 @@ void skb_over_panic(struct sk_buff *skb, int sz, void *here) ...@@ -126,7 +126,6 @@ void skb_over_panic(struct sk_buff *skb, int sz, void *here)
skb->dev ? skb->dev->name : "<NULL>"); skb->dev ? skb->dev->name : "<NULL>");
BUG(); BUG();
} }
EXPORT_SYMBOL(skb_over_panic);
/** /**
* skb_under_panic - private function * skb_under_panic - private function
...@@ -137,7 +136,7 @@ EXPORT_SYMBOL(skb_over_panic); ...@@ -137,7 +136,7 @@ EXPORT_SYMBOL(skb_over_panic);
* Out of line support code for skb_push(). Not user callable. * Out of line support code for skb_push(). Not user callable.
*/ */
void skb_under_panic(struct sk_buff *skb, int sz, void *here) static void skb_under_panic(struct sk_buff *skb, int sz, void *here)
{ {
printk(KERN_EMERG "skb_under_panic: text:%p len:%d put:%d head:%p " printk(KERN_EMERG "skb_under_panic: text:%p len:%d put:%d head:%p "
"data:%p tail:%#lx end:%#lx dev:%s\n", "data:%p tail:%#lx end:%#lx dev:%s\n",
...@@ -146,7 +145,6 @@ void skb_under_panic(struct sk_buff *skb, int sz, void *here) ...@@ -146,7 +145,6 @@ void skb_under_panic(struct sk_buff *skb, int sz, void *here)
skb->dev ? skb->dev->name : "<NULL>"); skb->dev ? skb->dev->name : "<NULL>");
BUG(); BUG();
} }
EXPORT_SYMBOL(skb_under_panic);
/* Allocate a new skbuff. We do this ourselves so we can fill in a few /* Allocate a new skbuff. We do this ourselves so we can fill in a few
* 'private' fields and also do memory statistics to find all the * 'private' fields and also do memory statistics to find all the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment