Skip to content

Commit 578efbc

Browse files
rashikadavem330
authored andcommitted
net: Move prototype declaration to header file include/net/ipx.h from net/ipx/af_ipx.c
Move prototype declaration of functions to header file include/net/ipx.h from net/ipx/af_ipx.c because they are used by more than one file. This eliminates the following warning in net/ipx/ipx_route.c:33:19: warning: no previous prototype for ‘ipxrtr_lookup’ [-Wmissing-prototypes] net/ipx/ipx_route.c:52:5: warning: no previous prototype for ‘ipxrtr_add_route’ [-Wmissing-prototypes] net/ipx/ipx_route.c:94:6: warning: no previous prototype for ‘ipxrtr_del_routes’ [-Wmissing-prototypes] net/ipx/ipx_route.c:149:5: warning: no previous prototype for ‘ipxrtr_route_skb’ [-Wmissing-prototypes] net/ipx/ipx_route.c:171:5: warning: no previous prototype for ‘ipxrtr_route_packet’ [-Wmissing-prototypes] net/ipx/ipx_route.c:261:5: warning: no previous prototype for ‘ipxrtr_ioctl’ [-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 493cc5e commit 578efbc

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

‎include/net/ipx.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ void ipxitf_down(struct ipx_interface *intrfc);
143143
struct ipx_interface *ipxitf_find_using_net(__be32 net);
144144
int ipxitf_send(struct ipx_interface *intrfc, struct sk_buff *skb, char *node);
145145
__be16 ipx_cksum(struct ipxhdr *packet, int length);
146+
int ipxrtr_add_route(__be32 network, struct ipx_interface *intrfc,
147+
unsigned char *node);
148+
void ipxrtr_del_routes(struct ipx_interface *intrfc);
149+
int ipxrtr_route_packet(struct sock *sk, struct sockaddr_ipx *usipx,
150+
struct iovec *iov, size_t len, int noblock);
151+
int ipxrtr_route_skb(struct sk_buff *skb);
152+
struct ipx_route *ipxrtr_lookup(__be32 net);
153+
int ipxrtr_ioctl(unsigned int cmd, void __user *arg);
146154

147155
static __inline__ void ipxitf_put(struct ipx_interface *intrfc)
148156
{

‎net/ipx/af_ipx.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,6 @@ DEFINE_SPINLOCK(ipx_interfaces_lock);
8484
struct ipx_interface *ipx_primary_net;
8585
struct ipx_interface *ipx_internal_net;
8686

87-
extern int ipxrtr_add_route(__be32 network, struct ipx_interface *intrfc,
88-
unsigned char *node);
89-
extern void ipxrtr_del_routes(struct ipx_interface *intrfc);
90-
extern int ipxrtr_route_packet(struct sock *sk, struct sockaddr_ipx *usipx,
91-
struct iovec *iov, size_t len, int noblock);
92-
extern int ipxrtr_route_skb(struct sk_buff *skb);
93-
extern struct ipx_route *ipxrtr_lookup(__be32 net);
94-
extern int ipxrtr_ioctl(unsigned int cmd, void __user *arg);
95-
9687
struct ipx_interface *ipx_interfaces_head(void)
9788
{
9889
struct ipx_interface *rc = NULL;

0 commit comments

Comments
 (0)