Commit c1b1203d authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

net: misc: Remove extern from function prototypes

There are a mix of function prototypes with and without extern
in the kernel sources.  Standardize on not using extern for
function prototypes.

Function prototypes don't need to be written with extern.
extern is assumed by the compiler.  Its use is as unnecessary as
using auto to declare automatic/local variables in a block.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7e58487b
...@@ -509,16 +509,11 @@ typedef struct irnet_ctrl_channel ...@@ -509,16 +509,11 @@ typedef struct irnet_ctrl_channel
*/ */
/* -------------------------- IRDA PART -------------------------- */ /* -------------------------- IRDA PART -------------------------- */
extern int int irda_irnet_create(irnet_socket *); /* Initialise an IrNET socket */
irda_irnet_create(irnet_socket *); /* Initialise a IrNET socket */ int irda_irnet_connect(irnet_socket *); /* Try to connect over IrDA */
extern int void irda_irnet_destroy(irnet_socket *); /* Teardown an IrNET socket */
irda_irnet_connect(irnet_socket *); /* Try to connect over IrDA */ int irda_irnet_init(void); /* Initialise IrDA part of IrNET */
extern void void irda_irnet_cleanup(void); /* Teardown IrDA part of IrNET */
irda_irnet_destroy(irnet_socket *); /* Teardown a IrNET socket */
extern int
irda_irnet_init(void); /* Initialise IrDA part of IrNET */
extern void
irda_irnet_cleanup(void); /* Teardown IrDA part of IrNET */
/**************************** VARIABLES ****************************/ /**************************** VARIABLES ****************************/
......
...@@ -238,29 +238,40 @@ static inline struct l2tp_tunnel *l2tp_sock_to_tunnel(struct sock *sk) ...@@ -238,29 +238,40 @@ static inline struct l2tp_tunnel *l2tp_sock_to_tunnel(struct sock *sk)
return tunnel; return tunnel;
} }
extern struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel); struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel);
extern void l2tp_tunnel_sock_put(struct sock *sk); void l2tp_tunnel_sock_put(struct sock *sk);
extern struct l2tp_session *l2tp_session_find(struct net *net, struct l2tp_tunnel *tunnel, u32 session_id); struct l2tp_session *l2tp_session_find(struct net *net,
extern struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth); struct l2tp_tunnel *tunnel,
extern struct l2tp_session *l2tp_session_find_by_ifname(struct net *net, char *ifname); u32 session_id);
extern struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id); struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth);
extern struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth); struct l2tp_session *l2tp_session_find_by_ifname(struct net *net, char *ifname);
struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id);
extern int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp); struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth);
extern void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel);
extern int l2tp_tunnel_delete(struct l2tp_tunnel *tunnel); int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id,
extern struct l2tp_session *l2tp_session_create(int priv_size, struct l2tp_tunnel *tunnel, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg); u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg,
extern void __l2tp_session_unhash(struct l2tp_session *session); struct l2tp_tunnel **tunnelp);
extern int l2tp_session_delete(struct l2tp_session *session); void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel);
extern void l2tp_session_free(struct l2tp_session *session); int l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
extern void l2tp_recv_common(struct l2tp_session *session, struct sk_buff *skb, unsigned char *ptr, unsigned char *optr, u16 hdrflags, int length, int (*payload_hook)(struct sk_buff *skb)); struct l2tp_session *l2tp_session_create(int priv_size,
extern int l2tp_session_queue_purge(struct l2tp_session *session); struct l2tp_tunnel *tunnel,
extern int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb); u32 session_id, u32 peer_session_id,
struct l2tp_session_cfg *cfg);
extern int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb, int hdr_len); void __l2tp_session_unhash(struct l2tp_session *session);
int l2tp_session_delete(struct l2tp_session *session);
extern int l2tp_nl_register_ops(enum l2tp_pwtype pw_type, const struct l2tp_nl_cmd_ops *ops); void l2tp_session_free(struct l2tp_session *session);
extern void l2tp_nl_unregister_ops(enum l2tp_pwtype pw_type); void l2tp_recv_common(struct l2tp_session *session, struct sk_buff *skb,
unsigned char *ptr, unsigned char *optr, u16 hdrflags,
int length, int (*payload_hook)(struct sk_buff *skb));
int l2tp_session_queue_purge(struct l2tp_session *session);
int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb);
int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb,
int hdr_len);
int l2tp_nl_register_ops(enum l2tp_pwtype pw_type,
const struct l2tp_nl_cmd_ops *ops);
void l2tp_nl_unregister_ops(enum l2tp_pwtype pw_type);
/* Session reference counts. Incremented when code obtains a reference /* Session reference counts. Incremented when code obtains a reference
* to a session. * to a session.
......
...@@ -144,8 +144,8 @@ void rate_control_deinitialize(struct ieee80211_local *local); ...@@ -144,8 +144,8 @@ void rate_control_deinitialize(struct ieee80211_local *local);
/* Rate control algorithms */ /* Rate control algorithms */
#ifdef CONFIG_MAC80211_RC_PID #ifdef CONFIG_MAC80211_RC_PID
extern int rc80211_pid_init(void); int rc80211_pid_init(void);
extern void rc80211_pid_exit(void); void rc80211_pid_exit(void);
#else #else
static inline int rc80211_pid_init(void) static inline int rc80211_pid_init(void)
{ {
...@@ -157,8 +157,8 @@ static inline void rc80211_pid_exit(void) ...@@ -157,8 +157,8 @@ static inline void rc80211_pid_exit(void)
#endif #endif
#ifdef CONFIG_MAC80211_RC_MINSTREL #ifdef CONFIG_MAC80211_RC_MINSTREL
extern int rc80211_minstrel_init(void); int rc80211_minstrel_init(void);
extern void rc80211_minstrel_exit(void); void rc80211_minstrel_exit(void);
#else #else
static inline int rc80211_minstrel_init(void) static inline int rc80211_minstrel_init(void)
{ {
...@@ -170,8 +170,8 @@ static inline void rc80211_minstrel_exit(void) ...@@ -170,8 +170,8 @@ static inline void rc80211_minstrel_exit(void)
#endif #endif
#ifdef CONFIG_MAC80211_RC_MINSTREL_HT #ifdef CONFIG_MAC80211_RC_MINSTREL_HT
extern int rc80211_minstrel_ht_init(void); int rc80211_minstrel_ht_init(void);
extern void rc80211_minstrel_ht_exit(void); void rc80211_minstrel_ht_exit(void);
#else #else
static inline int rc80211_minstrel_ht_init(void) static inline int rc80211_minstrel_ht_init(void)
{ {
......
...@@ -13,26 +13,20 @@ ...@@ -13,26 +13,20 @@
/* core.c */ /* core.c */
extern unsigned int nf_iterate(struct list_head *head, unsigned int nf_iterate(struct list_head *head, struct sk_buff *skb,
struct sk_buff *skb, unsigned int hook, const struct net_device *indev,
unsigned int hook, const struct net_device *outdev,
const struct net_device *indev, struct nf_hook_ops **elemp,
const struct net_device *outdev, int (*okfn)(struct sk_buff *), int hook_thresh);
struct nf_hook_ops **elemp,
int (*okfn)(struct sk_buff *),
int hook_thresh);
/* nf_queue.c */ /* nf_queue.c */
extern int nf_queue(struct sk_buff *skb, int nf_queue(struct sk_buff *skb, struct nf_hook_ops *elem, u_int8_t pf,
struct nf_hook_ops *elem, unsigned int hook, struct net_device *indev,
u_int8_t pf, unsigned int hook, struct net_device *outdev, int (*okfn)(struct sk_buff *),
struct net_device *indev, unsigned int queuenum);
struct net_device *outdev, int __init netfilter_queue_init(void);
int (*okfn)(struct sk_buff *),
unsigned int queuenum);
extern int __init netfilter_queue_init(void);
/* nf_log.c */ /* nf_log.c */
extern int __init netfilter_log_init(void); int __init netfilter_log_init(void);
#endif #endif
...@@ -749,7 +749,7 @@ void rds_atomic_send_complete(struct rds_message *rm, int wc_status); ...@@ -749,7 +749,7 @@ void rds_atomic_send_complete(struct rds_message *rm, int wc_status);
int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm, int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm,
struct cmsghdr *cmsg); struct cmsghdr *cmsg);
extern void __rds_put_mr_final(struct rds_mr *mr); void __rds_put_mr_final(struct rds_mr *mr);
static inline void rds_mr_put(struct rds_mr *mr) static inline void rds_mr_put(struct rds_mr *mr)
{ {
if (atomic_dec_and_test(&mr->r_refcount)) if (atomic_dec_and_test(&mr->r_refcount))
......
...@@ -426,17 +426,16 @@ extern struct workqueue_struct *rxrpc_workqueue; ...@@ -426,17 +426,16 @@ extern struct workqueue_struct *rxrpc_workqueue;
/* /*
* ar-accept.c * ar-accept.c
*/ */
extern void rxrpc_accept_incoming_calls(struct work_struct *); void rxrpc_accept_incoming_calls(struct work_struct *);
extern struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *, struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *, unsigned long);
unsigned long); int rxrpc_reject_call(struct rxrpc_sock *);
extern int rxrpc_reject_call(struct rxrpc_sock *);
/* /*
* ar-ack.c * ar-ack.c
*/ */
extern void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool);
extern void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool);
extern void rxrpc_process_call(struct work_struct *); void rxrpc_process_call(struct work_struct *);
/* /*
* ar-call.c * ar-call.c
...@@ -445,19 +444,18 @@ extern struct kmem_cache *rxrpc_call_jar; ...@@ -445,19 +444,18 @@ extern struct kmem_cache *rxrpc_call_jar;
extern struct list_head rxrpc_calls; extern struct list_head rxrpc_calls;
extern rwlock_t rxrpc_call_lock; extern rwlock_t rxrpc_call_lock;
extern struct rxrpc_call *rxrpc_get_client_call(struct rxrpc_sock *, struct rxrpc_call *rxrpc_get_client_call(struct rxrpc_sock *,
struct rxrpc_transport *, struct rxrpc_transport *,
struct rxrpc_conn_bundle *, struct rxrpc_conn_bundle *,
unsigned long, int, gfp_t); unsigned long, int, gfp_t);
extern struct rxrpc_call *rxrpc_incoming_call(struct rxrpc_sock *, struct rxrpc_call *rxrpc_incoming_call(struct rxrpc_sock *,
struct rxrpc_connection *, struct rxrpc_connection *,
struct rxrpc_header *, gfp_t); struct rxrpc_header *, gfp_t);
extern struct rxrpc_call *rxrpc_find_server_call(struct rxrpc_sock *, struct rxrpc_call *rxrpc_find_server_call(struct rxrpc_sock *, unsigned long);
unsigned long); void rxrpc_release_call(struct rxrpc_call *);
extern void rxrpc_release_call(struct rxrpc_call *); void rxrpc_release_calls_on_socket(struct rxrpc_sock *);
extern void rxrpc_release_calls_on_socket(struct rxrpc_sock *); void __rxrpc_put_call(struct rxrpc_call *);
extern void __rxrpc_put_call(struct rxrpc_call *); void __exit rxrpc_destroy_all_calls(void);
extern void __exit rxrpc_destroy_all_calls(void);
/* /*
* ar-connection.c * ar-connection.c
...@@ -465,19 +463,16 @@ extern void __exit rxrpc_destroy_all_calls(void); ...@@ -465,19 +463,16 @@ extern void __exit rxrpc_destroy_all_calls(void);
extern struct list_head rxrpc_connections; extern struct list_head rxrpc_connections;
extern rwlock_t rxrpc_connection_lock; extern rwlock_t rxrpc_connection_lock;
extern struct rxrpc_conn_bundle *rxrpc_get_bundle(struct rxrpc_sock *, struct rxrpc_conn_bundle *rxrpc_get_bundle(struct rxrpc_sock *,
struct rxrpc_transport *, struct rxrpc_transport *,
struct key *, struct key *, __be16, gfp_t);
__be16, gfp_t); void rxrpc_put_bundle(struct rxrpc_transport *, struct rxrpc_conn_bundle *);
extern void rxrpc_put_bundle(struct rxrpc_transport *, int rxrpc_connect_call(struct rxrpc_sock *, struct rxrpc_transport *,
struct rxrpc_conn_bundle *); struct rxrpc_conn_bundle *, struct rxrpc_call *, gfp_t);
extern int rxrpc_connect_call(struct rxrpc_sock *, struct rxrpc_transport *, void rxrpc_put_connection(struct rxrpc_connection *);
struct rxrpc_conn_bundle *, struct rxrpc_call *, void __exit rxrpc_destroy_all_connections(void);
gfp_t); struct rxrpc_connection *rxrpc_find_connection(struct rxrpc_transport *,
extern void rxrpc_put_connection(struct rxrpc_connection *); struct rxrpc_header *);
extern void __exit rxrpc_destroy_all_connections(void);
extern struct rxrpc_connection *rxrpc_find_connection(struct rxrpc_transport *,
struct rxrpc_header *);
extern struct rxrpc_connection * extern struct rxrpc_connection *
rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *, rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *,
gfp_t); gfp_t);
...@@ -485,15 +480,15 @@ rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *, ...@@ -485,15 +480,15 @@ rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *,
/* /*
* ar-connevent.c * ar-connevent.c
*/ */
extern void rxrpc_process_connection(struct work_struct *); void rxrpc_process_connection(struct work_struct *);
extern void rxrpc_reject_packet(struct rxrpc_local *, struct sk_buff *); void rxrpc_reject_packet(struct rxrpc_local *, struct sk_buff *);
extern void rxrpc_reject_packets(struct work_struct *); void rxrpc_reject_packets(struct work_struct *);
/* /*
* ar-error.c * ar-error.c
*/ */
extern void rxrpc_UDP_error_report(struct sock *); void rxrpc_UDP_error_report(struct sock *);
extern void rxrpc_UDP_error_handler(struct work_struct *); void rxrpc_UDP_error_handler(struct work_struct *);
/* /*
* ar-input.c * ar-input.c
...@@ -501,18 +496,17 @@ extern void rxrpc_UDP_error_handler(struct work_struct *); ...@@ -501,18 +496,17 @@ extern void rxrpc_UDP_error_handler(struct work_struct *);
extern unsigned long rxrpc_ack_timeout; extern unsigned long rxrpc_ack_timeout;
extern const char *rxrpc_pkts[]; extern const char *rxrpc_pkts[];
extern void rxrpc_data_ready(struct sock *, int); void rxrpc_data_ready(struct sock *, int);
extern int rxrpc_queue_rcv_skb(struct rxrpc_call *, struct sk_buff *, bool, int rxrpc_queue_rcv_skb(struct rxrpc_call *, struct sk_buff *, bool, bool);
bool); void rxrpc_fast_process_packet(struct rxrpc_call *, struct sk_buff *);
extern void rxrpc_fast_process_packet(struct rxrpc_call *, struct sk_buff *);
/* /*
* ar-local.c * ar-local.c
*/ */
extern rwlock_t rxrpc_local_lock; extern rwlock_t rxrpc_local_lock;
extern struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *); struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *);
extern void rxrpc_put_local(struct rxrpc_local *); void rxrpc_put_local(struct rxrpc_local *);
extern void __exit rxrpc_destroy_all_locals(void); void __exit rxrpc_destroy_all_locals(void);
/* /*
* ar-key.c * ar-key.c
...@@ -520,31 +514,29 @@ extern void __exit rxrpc_destroy_all_locals(void); ...@@ -520,31 +514,29 @@ extern void __exit rxrpc_destroy_all_locals(void);
extern struct key_type key_type_rxrpc; extern struct key_type key_type_rxrpc;
extern struct key_type key_type_rxrpc_s; extern struct key_type key_type_rxrpc_s;
extern int rxrpc_request_key(struct rxrpc_sock *, char __user *, int); int rxrpc_request_key(struct rxrpc_sock *, char __user *, int);
extern int rxrpc_server_keyring(struct rxrpc_sock *, char __user *, int); int rxrpc_server_keyring(struct rxrpc_sock *, char __user *, int);
extern int rxrpc_get_server_data_key(struct rxrpc_connection *, const void *, int rxrpc_get_server_data_key(struct rxrpc_connection *, const void *, time_t,
time_t, u32); u32);
/* /*
* ar-output.c * ar-output.c
*/ */
extern int rxrpc_resend_timeout; extern int rxrpc_resend_timeout;
extern int rxrpc_send_packet(struct rxrpc_transport *, struct sk_buff *); int rxrpc_send_packet(struct rxrpc_transport *, struct sk_buff *);
extern int rxrpc_client_sendmsg(struct kiocb *, struct rxrpc_sock *, int rxrpc_client_sendmsg(struct kiocb *, struct rxrpc_sock *,
struct rxrpc_transport *, struct msghdr *, struct rxrpc_transport *, struct msghdr *, size_t);
size_t); int rxrpc_server_sendmsg(struct kiocb *, struct rxrpc_sock *, struct msghdr *,
extern int rxrpc_server_sendmsg(struct kiocb *, struct rxrpc_sock *, size_t);
struct msghdr *, size_t);
/* /*
* ar-peer.c * ar-peer.c
*/ */
extern struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *, gfp_t); struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *, gfp_t);
extern void rxrpc_put_peer(struct rxrpc_peer *); void rxrpc_put_peer(struct rxrpc_peer *);
extern struct rxrpc_peer *rxrpc_find_peer(struct rxrpc_local *, struct rxrpc_peer *rxrpc_find_peer(struct rxrpc_local *, __be32, __be16);
__be32, __be16); void __exit rxrpc_destroy_all_peers(void);
extern void __exit rxrpc_destroy_all_peers(void);
/* /*
* ar-proc.c * ar-proc.c
...@@ -556,38 +548,36 @@ extern const struct file_operations rxrpc_connection_seq_fops; ...@@ -556,38 +548,36 @@ extern const struct file_operations rxrpc_connection_seq_fops;
/* /*
* ar-recvmsg.c * ar-recvmsg.c
*/ */
extern void rxrpc_remove_user_ID(struct rxrpc_sock *, struct rxrpc_call *); void rxrpc_remove_user_ID(struct rxrpc_sock *, struct rxrpc_call *);
extern int rxrpc_recvmsg(struct kiocb *, struct socket *, struct msghdr *, int rxrpc_recvmsg(struct kiocb *, struct socket *, struct msghdr *, size_t,
size_t, int); int);
/* /*
* ar-security.c * ar-security.c
*/ */
extern int rxrpc_register_security(struct rxrpc_security *); int rxrpc_register_security(struct rxrpc_security *);
extern void rxrpc_unregister_security(struct rxrpc_security *); void rxrpc_unregister_security(struct rxrpc_security *);
extern int rxrpc_init_client_conn_security(struct rxrpc_connection *); int rxrpc_init_client_conn_security(struct rxrpc_connection *);
extern int rxrpc_init_server_conn_security(struct rxrpc_connection *); int rxrpc_init_server_conn_security(struct rxrpc_connection *);
extern int rxrpc_secure_packet(const struct rxrpc_call *, struct sk_buff *, int rxrpc_secure_packet(const struct rxrpc_call *, struct sk_buff *, size_t,
size_t, void *); void *);
extern int rxrpc_verify_packet(const struct rxrpc_call *, struct sk_buff *, int rxrpc_verify_packet(const struct rxrpc_call *, struct sk_buff *, u32 *);
u32 *); void rxrpc_clear_conn_security(struct rxrpc_connection *);
extern void rxrpc_clear_conn_security(struct rxrpc_connection *);
/* /*
* ar-skbuff.c * ar-skbuff.c
*/ */
extern void rxrpc_packet_destructor(struct sk_buff *); void rxrpc_packet_destructor(struct sk_buff *);
/* /*
* ar-transport.c * ar-transport.c
*/ */
extern struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *, struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *,
struct rxrpc_peer *, struct rxrpc_peer *, gfp_t);
gfp_t); void rxrpc_put_transport(struct rxrpc_transport *);
extern void rxrpc_put_transport(struct rxrpc_transport *); void __exit rxrpc_destroy_all_transports(void);
extern void __exit rxrpc_destroy_all_transports(void); struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *,
extern struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *, struct rxrpc_peer *);
struct rxrpc_peer *);
/* /*
* debug tracing * debug tracing
......
...@@ -90,21 +90,21 @@ extern int tipc_random __read_mostly; ...@@ -90,21 +90,21 @@ extern int tipc_random __read_mostly;
/* /*
* Routines available to privileged subsystems * Routines available to privileged subsystems
*/ */
extern int tipc_core_start_net(unsigned long); int tipc_core_start_net(unsigned long);
extern int tipc_handler_start(void); int tipc_handler_start(void);
extern void tipc_handler_stop(void); void tipc_handler_stop(void);
extern int tipc_netlink_start(void); int tipc_netlink_start(void);
extern void tipc_netlink_stop(void); void tipc_netlink_stop(void);
extern int tipc_socket_init(void); int tipc_socket_init(void);
extern void tipc_socket_stop(void); void tipc_socket_stop(void);
extern int tipc_sock_create_local(int type, struct socket **res); int tipc_sock_create_local(int type, struct socket **res);
extern void tipc_sock_release_local(struct socket *sock); void tipc_sock_release_local(struct socket *sock);
extern int tipc_sock_accept_local(struct socket *sock, int tipc_sock_accept_local(struct socket *sock, struct socket **newsock,
struct socket **newsock, int flags); int flags);
#ifdef CONFIG_SYSCTL #ifdef CONFIG_SYSCTL
extern int tipc_register_sysctl(void); int tipc_register_sysctl(void);
extern void tipc_unregister_sysctl(void); void tipc_unregister_sysctl(void);
#else #else
#define tipc_register_sysctl() 0 #define tipc_register_sysctl() 0
#define tipc_unregister_sysctl() #define tipc_unregister_sysctl()
...@@ -201,6 +201,6 @@ static inline struct tipc_msg *buf_msg(struct sk_buff *skb) ...@@ -201,6 +201,6 @@ static inline struct tipc_msg *buf_msg(struct sk_buff *skb)
return (struct tipc_msg *)skb->data; return (struct tipc_msg *)skb->data;
} }
extern struct sk_buff *tipc_buf_acquire(u32 size); struct sk_buff *tipc_buf_acquire(u32 size);
#endif #endif
...@@ -63,11 +63,11 @@ void __wimax_state_set(struct wimax_dev *wimax_dev, enum wimax_st state) ...@@ -63,11 +63,11 @@ void __wimax_state_set(struct wimax_dev *wimax_dev, enum wimax_st state)
{ {
wimax_dev->state = state; wimax_dev->state = state;
} }
extern void __wimax_state_change(struct wimax_dev *, enum wimax_st); void __wimax_state_change(struct wimax_dev *, enum wimax_st);
#ifdef CONFIG_DEBUG_FS #ifdef CONFIG_DEBUG_FS
extern int wimax_debugfs_add(struct wimax_dev *); int wimax_debugfs_add(struct wimax_dev *);
extern void wimax_debugfs_rm(struct wimax_dev *); void wimax_debugfs_rm(struct wimax_dev *);
#else #else
static inline int wimax_debugfs_add(struct wimax_dev *wimax_dev) static inline int wimax_debugfs_add(struct wimax_dev *wimax_dev)
{ {
...@@ -76,13 +76,13 @@ static inline int wimax_debugfs_add(struct wimax_dev *wimax_dev) ...@@ -76,13 +76,13 @@ static inline int wimax_debugfs_add(struct wimax_dev *wimax_dev)
static inline void wimax_debugfs_rm(struct wimax_dev *wimax_dev) {} static inline void wimax_debugfs_rm(struct wimax_dev *wimax_dev) {}
#endif #endif
extern void wimax_id_table_add(struct wimax_dev *); void wimax_id_table_add(struct wimax_dev *);
extern struct wimax_dev *wimax_dev_get_by_genl_info(struct genl_info *, int); struct wimax_dev *wimax_dev_get_by_genl_info(struct genl_info *, int);
extern void wimax_id_table_rm(struct wimax_dev *); void wimax_id_table_rm(struct wimax_dev *);
extern void wimax_id_table_release(void); void wimax_id_table_release(void);
extern int wimax_rfkill_add(struct wimax_dev *); int wimax_rfkill_add(struct wimax_dev *);
extern void wimax_rfkill_rm(struct wimax_dev *); void wimax_rfkill_rm(struct wimax_dev *);
extern struct genl_family wimax_gnl_family; extern struct genl_family wimax_gnl_family;
extern struct genl_multicast_group wimax_gnl_mcg; extern struct genl_multicast_group wimax_gnl_mcg;
......
...@@ -234,10 +234,10 @@ struct cfg80211_beacon_registration { ...@@ -234,10 +234,10 @@ struct cfg80211_beacon_registration {
}; };
/* free object */ /* free object */
extern void cfg80211_dev_free(struct cfg80211_registered_device *rdev); void cfg80211_dev_free(struct cfg80211_registered_device *rdev);
extern int cfg80211_dev_rename(struct cfg80211_registered_device *rdev, int cfg80211_dev_rename(struct cfg80211_registered_device *rdev,
char *newname); char *newname);
void ieee80211_set_bitrate_flags(struct wiphy *wiphy); void ieee80211_set_bitrate_flags(struct wiphy *wiphy);
......
#ifndef __WIRELESS_SYSFS_H #ifndef __WIRELESS_SYSFS_H
#define __WIRELESS_SYSFS_H #define __WIRELESS_SYSFS_H
extern int wiphy_sysfs_init(void); int wiphy_sysfs_init(void);
extern void wiphy_sysfs_exit(void); void wiphy_sysfs_exit(void);
extern struct class ieee80211_class; extern struct class ieee80211_class;
......
...@@ -130,7 +130,7 @@ static inline unsigned int __addr_hash(const xfrm_address_t *daddr, ...@@ -130,7 +130,7 @@ static inline unsigned int __addr_hash(const xfrm_address_t *daddr,
return h & hmask; return h & hmask;
} }
extern struct hlist_head *xfrm_hash_alloc(unsigned int sz); struct hlist_head *xfrm_hash_alloc(unsigned int sz);
extern void xfrm_hash_free(struct hlist_head *n, unsigned int sz); void xfrm_hash_free(struct hlist_head *n, unsigned int sz);
#endif /* _XFRM_HASH_H */ #endif /* _XFRM_HASH_H */
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