Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rashika Kheria and committed by
David S. Miller
493cc5e5 ab3301bd

+3 -4
+3
include/net/ipx.h
··· 140 140 } 141 141 142 142 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); 143 146 144 147 static __inline__ void ipxitf_put(struct ipx_interface *intrfc) 145 148 {
-4
net/ipx/ipx_route.c
··· 20 20 21 21 extern struct ipx_interface *ipx_internal_net; 22 22 23 - extern __be16 ipx_cksum(struct ipxhdr *packet, int length); 24 23 extern struct ipx_interface *ipxitf_find_using_net(__be32 net); 25 24 extern int ipxitf_demux_socket(struct ipx_interface *intrfc, 26 25 struct sk_buff *skb, int copy); 27 26 extern int ipxitf_demux_socket(struct ipx_interface *intrfc, 28 27 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); 32 28 33 29 struct ipx_route *ipxrtr_lookup(__be32 net) 34 30 {