Commit 7780d8ae authored by Rashika Kheria's avatar Rashika Kheria Committed by David S. Miller

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: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 578efbc1
...@@ -15,4 +15,6 @@ struct datalink_proto { ...@@ -15,4 +15,6 @@ struct datalink_proto {
struct list_head node; struct list_head node;
}; };
struct datalink_proto *make_EII_client(void);
void destroy_EII_client(struct datalink_proto *dl);
#endif #endif
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include <net/p8022.h> #include <net/p8022.h>
#include <net/psnap.h> #include <net/psnap.h>
#include <net/sock.h> #include <net/sock.h>
#include <net/datalink.h>
#include <net/tcp_states.h> #include <net/tcp_states.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -1977,9 +1978,6 @@ static struct notifier_block ipx_dev_notifier = { ...@@ -1977,9 +1978,6 @@ static struct notifier_block ipx_dev_notifier = {
.notifier_call = ipxitf_device_event, .notifier_call = ipxitf_device_event,
}; };
extern struct datalink_proto *make_EII_client(void);
extern void destroy_EII_client(struct datalink_proto *);
static const unsigned char ipx_8022_type = 0xE0; static const unsigned char ipx_8022_type = 0xE0;
static const unsigned char ipx_snap_id[5] = { 0x0, 0x0, 0x0, 0x81, 0x37 }; static const unsigned char ipx_snap_id[5] = { 0x0, 0x0, 0x0, 0x81, 0x37 };
static const char ipx_EII_err_msg[] __initconst = static const char ipx_EII_err_msg[] __initconst =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment