summaryrefslogtreecommitdiffstats
path: root/net/ax25
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2015-03-02 01:04:31 -0500
committerDavid S. Miller <davem@davemloft.net>2015-03-02 16:43:40 -0500
commit46d4e47abee04c24055114d50e408078a09c4d36 (patch)
tree327c7545acd87dc372bb4d42b125c10ccbed067b /net/ax25
parent204d2dcae46150777ca90c6d480c57022796c547 (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.c18
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
49int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, 49static 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
103int ax25_rebuild_header(struct sk_buff *skb) 103static 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
221int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, 221static 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
228int ax25_rebuild_header(struct sk_buff *skb) 228static 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
240EXPORT_SYMBOL(ax25_hard_header);
241EXPORT_SYMBOL(ax25_rebuild_header);
242EXPORT_SYMBOL(ax25_header_ops); 240EXPORT_SYMBOL(ax25_header_ops);
243 241