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

net: Move prototype declaration to header file include/net/datalink.h from net/ipx/af_ipx.c

Move prototype declarations of function to header file
include/net/datalink.h from net/ipx/af_ipx.c because they are used by
more than one file.

This eliminates the following warning in net/ipx/pe2.c:
net/ipx/pe2.c:20:24: warning: no previous prototype for ‘make_EII_client’ [-Wmissing-prototypes]
net/ipx/pe2.c:32:6: warning: no previous prototype for ‘destroy_EII_client’ [-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
7780d8ae 578efbc1

+3 -3
+2
include/net/datalink.h
··· 15 15 struct list_head node; 16 16 }; 17 17 18 + struct datalink_proto *make_EII_client(void); 19 + void destroy_EII_client(struct datalink_proto *dl); 18 20 #endif
+1 -3
net/ipx/af_ipx.c
··· 52 52 #include <net/p8022.h> 53 53 #include <net/psnap.h> 54 54 #include <net/sock.h> 55 + #include <net/datalink.h> 55 56 #include <net/tcp_states.h> 56 57 57 58 #include <asm/uaccess.h> ··· 1977 1976 static struct notifier_block ipx_dev_notifier = { 1978 1977 .notifier_call = ipxitf_device_event, 1979 1978 }; 1980 - 1981 - extern struct datalink_proto *make_EII_client(void); 1982 - extern void destroy_EII_client(struct datalink_proto *); 1983 1979 1984 1980 static const unsigned char ipx_8022_type = 0xE0; 1985 1981 static const unsigned char ipx_snap_id[5] = { 0x0, 0x0, 0x0, 0x81, 0x37 };