Skip to content

Commit 7780d8a

Browse files
rashikadavem330
authored andcommitted
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>
1 parent 578efbc commit 7780d8a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎include/net/datalink.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ struct datalink_proto {
1515
struct list_head node;
1616
};
1717

18+
struct datalink_proto *make_EII_client(void);
19+
void destroy_EII_client(struct datalink_proto *dl);
1820
#endif

‎net/ipx/af_ipx.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#include <net/p8022.h>
5353
#include <net/psnap.h>
5454
#include <net/sock.h>
55+
#include <net/datalink.h>
5556
#include <net/tcp_states.h>
5657

5758
#include <asm/uaccess.h>
@@ -1977,9 +1978,6 @@ static struct notifier_block ipx_dev_notifier = {
19771978
.notifier_call = ipxitf_device_event,
19781979
};
19791980

1980-
extern struct datalink_proto *make_EII_client(void);
1981-
extern void destroy_EII_client(struct datalink_proto *);
1982-
19831981
static const unsigned char ipx_8022_type = 0xE0;
19841982
static const unsigned char ipx_snap_id[5] = { 0x0, 0x0, 0x0, 0x81, 0x37 };
19851983
static const char ipx_EII_err_msg[] __initconst =

0 commit comments

Comments
 (0)