diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2014-02-09 11:57:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-09 20:32:50 -0500 |
commit | 7780d8ae4ae1960ef7c0570de0a1ecd7b60c8152 (patch) | |
tree | 9ccca3dbbb2f74383b9d9049c8cf491e940501e6 /net/ipx | |
parent | 578efbc19f468686ad7eb1e505bab56d04e92784 (diff) |
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>
Diffstat (limited to 'net/ipx')
-rw-r--r-- | net/ipx/af_ipx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c index e5a00a9b52f3..224d05856b85 100644 --- a/net/ipx/af_ipx.c +++ b/net/ipx/af_ipx.c | |||
@@ -52,6 +52,7 @@ | |||
52 | #include <net/p8022.h> | 52 | #include <net/p8022.h> |
53 | #include <net/psnap.h> | 53 | #include <net/psnap.h> |
54 | #include <net/sock.h> | 54 | #include <net/sock.h> |
55 | #include <net/datalink.h> | ||
55 | #include <net/tcp_states.h> | 56 | #include <net/tcp_states.h> |
56 | 57 | ||
57 | #include <asm/uaccess.h> | 58 | #include <asm/uaccess.h> |
@@ -1977,9 +1978,6 @@ static struct notifier_block ipx_dev_notifier = { | |||
1977 | .notifier_call = ipxitf_device_event, | 1978 | .notifier_call = ipxitf_device_event, |
1978 | }; | 1979 | }; |
1979 | 1980 | ||
1980 | extern struct datalink_proto *make_EII_client(void); | ||
1981 | extern void destroy_EII_client(struct datalink_proto *); | ||
1982 | |||
1983 | static const unsigned char ipx_8022_type = 0xE0; | 1981 | static const unsigned char ipx_8022_type = 0xE0; |
1984 | static const unsigned char ipx_snap_id[5] = { 0x0, 0x0, 0x0, 0x81, 0x37 }; | 1982 | static const unsigned char ipx_snap_id[5] = { 0x0, 0x0, 0x0, 0x81, 0x37 }; |
1985 | static const char ipx_EII_err_msg[] __initconst = | 1983 | static const char ipx_EII_err_msg[] __initconst = |