mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
7780d8ae4a
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>
21 lines
580 B
C
21 lines
580 B
C
#ifndef _NET_INET_DATALINK_H_
|
|
#define _NET_INET_DATALINK_H_
|
|
|
|
struct datalink_proto {
|
|
unsigned char type[8];
|
|
|
|
struct llc_sap *sap;
|
|
|
|
unsigned short header_length;
|
|
|
|
int (*rcvfunc)(struct sk_buff *, struct net_device *,
|
|
struct packet_type *, struct net_device *);
|
|
int (*request)(struct datalink_proto *, struct sk_buff *,
|
|
unsigned char *);
|
|
struct list_head node;
|
|
};
|
|
|
|
struct datalink_proto *make_EII_client(void);
|
|
void destroy_EII_client(struct datalink_proto *dl);
|
|
#endif
|