Skip to content

Commit 493cc5e

Browse files
rashikadavem330
authored andcommitted
net: Move prototype declaration to include/net/ipx.h from net/ipx/ipx_route.c
Move prototype definition of function to header file include/net/ipx.h from net/ipx/ipx_route.c because they are used by more than one file. This eliminates the following warning from net/ipx/af_ipx.c: net/ipx/af_ipx.c:193:23: warning: no previous prototype for ‘ipxitf_find_using_net’ [-Wmissing-prototypes] net/ipx/af_ipx.c:577:5: warning: no previous prototype for ‘ipxitf_send’ [-Wmissing-prototypes] net/ipx/af_ipx.c:1219:8: warning: no previous prototype for ‘ipx_cksum’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ab3301b commit 493cc5e

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎include/net/ipx.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ static __inline__ void ipxitf_hold(struct ipx_interface *intrfc)
140140
}
141141

142142
void ipxitf_down(struct ipx_interface *intrfc);
143+
struct ipx_interface *ipxitf_find_using_net(__be32 net);
144+
int ipxitf_send(struct ipx_interface *intrfc, struct sk_buff *skb, char *node);
145+
__be16 ipx_cksum(struct ipxhdr *packet, int length);
143146

144147
static __inline__ void ipxitf_put(struct ipx_interface *intrfc)
145148
{

‎net/ipx/ipx_route.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,11 @@ DEFINE_RWLOCK(ipx_routes_lock);
2020

2121
extern struct ipx_interface *ipx_internal_net;
2222

23-
extern __be16 ipx_cksum(struct ipxhdr *packet, int length);
2423
extern struct ipx_interface *ipxitf_find_using_net(__be32 net);
2524
extern int ipxitf_demux_socket(struct ipx_interface *intrfc,
2625
struct sk_buff *skb, int copy);
2726
extern int ipxitf_demux_socket(struct ipx_interface *intrfc,
2827
struct sk_buff *skb, int copy);
29-
extern int ipxitf_send(struct ipx_interface *intrfc, struct sk_buff *skb,
30-
char *node);
31-
extern struct ipx_interface *ipxitf_find_using_net(__be32 net);
3228

3329
struct ipx_route *ipxrtr_lookup(__be32 net)
3430
{

0 commit comments

Comments
 (0)