diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-02 01:04:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-02 16:43:40 -0500 |
commit | 46d4e47abee04c24055114d50e408078a09c4d36 (patch) | |
tree | 327c7545acd87dc372bb4d42b125c10ccbed067b /net/ax25 | |
parent | 204d2dcae46150777ca90c6d480c57022796c547 (diff) |
ax25: Make ax25_header and ax25_rebuild_header static
The only user is in ax25_ip.c so stop exporting these functions.
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-hams@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 | ||