Skip to content

Commit

Permalink
ax25: Make ax25_header and ax25_rebuild_header static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ebiederm authored and davem330 committed Mar 2, 2015
1 parent 204d2dc commit 46d4e47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
3 changes: 0 additions & 3 deletions include/net/ax25.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,6 @@ int ax25_kiss_rcv(struct sk_buff *, struct net_device *, struct packet_type *,
struct net_device *);

/* ax25_ip.c */
int ax25_hard_header(struct sk_buff *, struct net_device *, unsigned short,
const void *, const void *, unsigned int);
int ax25_rebuild_header(struct sk_buff *);
extern const struct header_ops ax25_header_ops;

/* ax25_out.c */
Expand Down
18 changes: 8 additions & 10 deletions net/ax25/ax25_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@

#ifdef CONFIG_INET

int ax25_hard_header(struct sk_buff *skb, struct net_device *dev,
unsigned short type, const void *daddr,
const void *saddr, unsigned int len)
static int ax25_hard_header(struct sk_buff *skb, struct net_device *dev,
unsigned short type, const void *daddr,
const void *saddr, unsigned int len)
{
unsigned char *buff;

Expand Down Expand Up @@ -100,7 +100,7 @@ int ax25_hard_header(struct sk_buff *skb, struct net_device *dev,
return -AX25_HEADER_LEN; /* Unfinished header */
}

int ax25_rebuild_header(struct sk_buff *skb)
static int ax25_rebuild_header(struct sk_buff *skb)
{
struct sk_buff *ourskb;
unsigned char *bp = skb->data;
Expand Down Expand Up @@ -218,14 +218,14 @@ int ax25_rebuild_header(struct sk_buff *skb)

#else /* INET */

int ax25_hard_header(struct sk_buff *skb, struct net_device *dev,
unsigned short type, const void *daddr,
const void *saddr, unsigned int len)
static int ax25_hard_header(struct sk_buff *skb, struct net_device *dev,
unsigned short type, const void *daddr,
const void *saddr, unsigned int len)
{
return -AX25_HEADER_LEN;
}

int ax25_rebuild_header(struct sk_buff *skb)
static int ax25_rebuild_header(struct sk_buff *skb)
{
return 1;
}
Expand All @@ -237,7 +237,5 @@ const struct header_ops ax25_header_ops = {
.rebuild = ax25_rebuild_header,
};

EXPORT_SYMBOL(ax25_hard_header);
EXPORT_SYMBOL(ax25_rebuild_header);
EXPORT_SYMBOL(ax25_header_ops);

0 comments on commit 46d4e47

Please sign in to comment.