diff options
Diffstat (limited to 'net/ax25')
-rw-r--r-- | net/ax25/ax25_ip.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/net/ax25/ax25_ip.c b/net/ax25/ax25_ip.c index db3c283821d1..d93103ba8cec 100644 --- a/net/ax25/ax25_ip.c +++ b/net/ax25/ax25_ip.c | |||
@@ -46,9 +46,9 @@ | |||
46 | 46 | ||
47 | #ifdef CONFIG_INET | 47 | #ifdef CONFIG_INET |
48 | 48 | ||
49 | int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, | 49 | static int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, |
50 | unsigned short type, const void *daddr, | 50 | unsigned short type, const void *daddr, |
51 | const void *saddr, unsigned int len) | 51 | const void *saddr, unsigned int len) |
52 | { | 52 | { |
53 | unsigned char *buff; | 53 | unsigned char *buff; |
54 | 54 | ||
@@ -100,7 +100,7 @@ int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, | |||
100 | return -AX25_HEADER_LEN; /* Unfinished header */ | 100 | return -AX25_HEADER_LEN; /* Unfinished header */ |
101 | } | 101 | } |
102 | 102 | ||
103 | int ax25_rebuild_header(struct sk_buff *skb) | 103 | static int ax25_rebuild_header(struct sk_buff *skb) |
104 | { | 104 | { |
105 | struct sk_buff *ourskb; | 105 | struct sk_buff *ourskb; |
106 | unsigned char *bp = skb->data; | 106 | unsigned char *bp = skb->data; |
@@ -218,14 +218,14 @@ put: | |||
218 | 218 | ||
219 | #else /* INET */ | 219 | #else /* INET */ |
220 | 220 | ||
221 | int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, | 221 | static int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, |
222 | unsigned short type, const void *daddr, | 222 | unsigned short type, const void *daddr, |
223 | const void *saddr, unsigned int len) | 223 | const void *saddr, unsigned int len) |
224 | { | 224 | { |
225 | return -AX25_HEADER_LEN; | 225 | return -AX25_HEADER_LEN; |
226 | } | 226 | } |
227 | 227 | ||
228 | int ax25_rebuild_header(struct sk_buff *skb) | 228 | static int ax25_rebuild_header(struct sk_buff *skb) |
229 | { | 229 | { |
230 | return 1; | 230 | return 1; |
231 | } | 231 | } |
@@ -237,7 +237,5 @@ const struct header_ops ax25_header_ops = { | |||
237 | .rebuild = ax25_rebuild_header, | 237 | .rebuild = ax25_rebuild_header, |
238 | }; | 238 | }; |
239 | 239 | ||
240 | EXPORT_SYMBOL(ax25_hard_header); | ||
241 | EXPORT_SYMBOL(ax25_rebuild_header); | ||
242 | EXPORT_SYMBOL(ax25_header_ops); | 240 | EXPORT_SYMBOL(ax25_header_ops); |
243 | 241 | ||