aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/irda/irnet/irnet.h15
-rw-r--r--net/l2tp/l2tp_core.h57
-rw-r--r--net/mac80211/rate.h12
-rw-r--r--net/netfilter/nf_internals.h28
-rw-r--r--net/rds/rds.h2
-rw-r--r--net/rxrpc/ar-internal.h150
-rw-r--r--net/tipc/core.h28
-rw-r--r--net/wimax/wimax-internal.h18
-rw-r--r--net/wireless/core.h6
-rw-r--r--net/wireless/sysfs.h4
-rw-r--r--net/xfrm/xfrm_hash.h4
11 files changed, 157 insertions, 167 deletions
diff --git a/net/irda/irnet/irnet.h b/net/irda/irnet/irnet.h
index 564eb0b8afa3..8d65bb9477fc 100644
--- a/net/irda/irnet/irnet.h
+++ b/net/irda/irnet/irnet.h
@@ -509,16 +509,11 @@ typedef struct irnet_ctrl_channel
509 */ 509 */
510 510
511/* -------------------------- IRDA PART -------------------------- */ 511/* -------------------------- IRDA PART -------------------------- */
512extern int 512int irda_irnet_create(irnet_socket *); /* Initialise an IrNET socket */
513 irda_irnet_create(irnet_socket *); /* Initialise a IrNET socket */ 513int irda_irnet_connect(irnet_socket *); /* Try to connect over IrDA */
514extern int 514void irda_irnet_destroy(irnet_socket *); /* Teardown an IrNET socket */
515 irda_irnet_connect(irnet_socket *); /* Try to connect over IrDA */ 515int irda_irnet_init(void); /* Initialise IrDA part of IrNET */
516extern void 516void irda_irnet_cleanup(void); /* Teardown IrDA part of IrNET */
517 irda_irnet_destroy(irnet_socket *); /* Teardown a IrNET socket */
518extern int
519 irda_irnet_init(void); /* Initialise IrDA part of IrNET */
520extern void
521 irda_irnet_cleanup(void); /* Teardown IrDA part of IrNET */
522 517
523/**************************** VARIABLES ****************************/ 518/**************************** VARIABLES ****************************/
524 519
diff --git a/net/l2tp/l2tp_core.h b/net/l2tp/l2tp_core.h
index 6f251cbc2ed7..1ee9f6965d68 100644
--- a/net/l2tp/l2tp_core.h
+++ b/net/l2tp/l2tp_core.h
@@ -238,29 +238,40 @@ out:
238 return tunnel; 238 return tunnel;
239} 239}
240 240
241extern struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel); 241struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel);
242extern void l2tp_tunnel_sock_put(struct sock *sk); 242void l2tp_tunnel_sock_put(struct sock *sk);
243extern struct l2tp_session *l2tp_session_find(struct net *net, struct l2tp_tunnel *tunnel, u32 session_id); 243struct l2tp_session *l2tp_session_find(struct net *net,
244extern struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth); 244 struct l2tp_tunnel *tunnel,
245extern struct l2tp_session *l2tp_session_find_by_ifname(struct net *net, char *ifname); 245 u32 session_id);
246extern struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id); 246struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth);
247extern struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth); 247struct l2tp_session *l2tp_session_find_by_ifname(struct net *net, char *ifname);
248 248struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id);
249extern 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); 249struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth);
250extern void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel); 250
251extern int l2tp_tunnel_delete(struct l2tp_tunnel *tunnel); 251int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id,
252extern 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); 252 u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg,
253extern void __l2tp_session_unhash(struct l2tp_session *session); 253 struct l2tp_tunnel **tunnelp);
254extern int l2tp_session_delete(struct l2tp_session *session); 254void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel);
255extern void l2tp_session_free(struct l2tp_session *session); 255int l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
256extern 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)); 256struct l2tp_session *l2tp_session_create(int priv_size,
257extern int l2tp_session_queue_purge(struct l2tp_session *session); 257 struct l2tp_tunnel *tunnel,
258extern int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb); 258 u32 session_id, u32 peer_session_id,
259 259 struct l2tp_session_cfg *cfg);
260extern int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb, int hdr_len); 260void __l2tp_session_unhash(struct l2tp_session *session);
261 261int l2tp_session_delete(struct l2tp_session *session);
262extern int l2tp_nl_register_ops(enum l2tp_pwtype pw_type, const struct l2tp_nl_cmd_ops *ops); 262void l2tp_session_free(struct l2tp_session *session);
263extern void l2tp_nl_unregister_ops(enum l2tp_pwtype pw_type); 263void l2tp_recv_common(struct l2tp_session *session, struct sk_buff *skb,
264 unsigned char *ptr, unsigned char *optr, u16 hdrflags,
265 int length, int (*payload_hook)(struct sk_buff *skb));
266int l2tp_session_queue_purge(struct l2tp_session *session);
267int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb);
268
269int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb,
270 int hdr_len);
271
272int l2tp_nl_register_ops(enum l2tp_pwtype pw_type,
273 const struct l2tp_nl_cmd_ops *ops);
274void l2tp_nl_unregister_ops(enum l2tp_pwtype pw_type);
264 275
265/* Session reference counts. Incremented when code obtains a reference 276/* Session reference counts. Incremented when code obtains a reference
266 * to a session. 277 * to a session.
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h
index 5dedc56c94db..505bc0dea074 100644
--- a/net/mac80211/rate.h
+++ b/net/mac80211/rate.h
@@ -144,8 +144,8 @@ void rate_control_deinitialize(struct ieee80211_local *local);
144 144
145/* Rate control algorithms */ 145/* Rate control algorithms */
146#ifdef CONFIG_MAC80211_RC_PID 146#ifdef CONFIG_MAC80211_RC_PID
147extern int rc80211_pid_init(void); 147int rc80211_pid_init(void);
148extern void rc80211_pid_exit(void); 148void rc80211_pid_exit(void);
149#else 149#else
150static inline int rc80211_pid_init(void) 150static inline int rc80211_pid_init(void)
151{ 151{
@@ -157,8 +157,8 @@ static inline void rc80211_pid_exit(void)
157#endif 157#endif
158 158
159#ifdef CONFIG_MAC80211_RC_MINSTREL 159#ifdef CONFIG_MAC80211_RC_MINSTREL
160extern int rc80211_minstrel_init(void); 160int rc80211_minstrel_init(void);
161extern void rc80211_minstrel_exit(void); 161void rc80211_minstrel_exit(void);
162#else 162#else
163static inline int rc80211_minstrel_init(void) 163static inline int rc80211_minstrel_init(void)
164{ 164{
@@ -170,8 +170,8 @@ static inline void rc80211_minstrel_exit(void)
170#endif 170#endif
171 171
172#ifdef CONFIG_MAC80211_RC_MINSTREL_HT 172#ifdef CONFIG_MAC80211_RC_MINSTREL_HT
173extern int rc80211_minstrel_ht_init(void); 173int rc80211_minstrel_ht_init(void);
174extern void rc80211_minstrel_ht_exit(void); 174void rc80211_minstrel_ht_exit(void);
175#else 175#else
176static inline int rc80211_minstrel_ht_init(void) 176static inline int rc80211_minstrel_ht_init(void)
177{ 177{
diff --git a/net/netfilter/nf_internals.h b/net/netfilter/nf_internals.h
index 3deec997be89..61a3c927e63c 100644
--- a/net/netfilter/nf_internals.h
+++ b/net/netfilter/nf_internals.h
@@ -13,26 +13,20 @@
13 13
14 14
15/* core.c */ 15/* core.c */
16extern unsigned int nf_iterate(struct list_head *head, 16unsigned int nf_iterate(struct list_head *head, struct sk_buff *skb,
17 struct sk_buff *skb, 17 unsigned int hook, const struct net_device *indev,
18 unsigned int hook, 18 const struct net_device *outdev,
19 const struct net_device *indev, 19 struct nf_hook_ops **elemp,
20 const struct net_device *outdev, 20 int (*okfn)(struct sk_buff *), int hook_thresh);
21 struct nf_hook_ops **elemp,
22 int (*okfn)(struct sk_buff *),
23 int hook_thresh);
24 21
25/* nf_queue.c */ 22/* nf_queue.c */
26extern int nf_queue(struct sk_buff *skb, 23int nf_queue(struct sk_buff *skb, struct nf_hook_ops *elem, u_int8_t pf,
27 struct nf_hook_ops *elem, 24 unsigned int hook, struct net_device *indev,
28 u_int8_t pf, unsigned int hook, 25 struct net_device *outdev, int (*okfn)(struct sk_buff *),
29 struct net_device *indev, 26 unsigned int queuenum);
30 struct net_device *outdev, 27int __init netfilter_queue_init(void);
31 int (*okfn)(struct sk_buff *),
32 unsigned int queuenum);
33extern int __init netfilter_queue_init(void);
34 28
35/* nf_log.c */ 29/* nf_log.c */
36extern int __init netfilter_log_init(void); 30int __init netfilter_log_init(void);
37 31
38#endif 32#endif
diff --git a/net/rds/rds.h b/net/rds/rds.h
index ec1d731ecff0..48f8ffc60f8f 100644
--- a/net/rds/rds.h
+++ b/net/rds/rds.h
@@ -749,7 +749,7 @@ void rds_atomic_send_complete(struct rds_message *rm, int wc_status);
749int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm, 749int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm,
750 struct cmsghdr *cmsg); 750 struct cmsghdr *cmsg);
751 751
752extern void __rds_put_mr_final(struct rds_mr *mr); 752void __rds_put_mr_final(struct rds_mr *mr);
753static inline void rds_mr_put(struct rds_mr *mr) 753static inline void rds_mr_put(struct rds_mr *mr)
754{ 754{
755 if (atomic_dec_and_test(&mr->r_refcount)) 755 if (atomic_dec_and_test(&mr->r_refcount))
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h
index a693aca2ae2e..5f43675ee1df 100644
--- a/net/rxrpc/ar-internal.h
+++ b/net/rxrpc/ar-internal.h
@@ -426,17 +426,16 @@ extern struct workqueue_struct *rxrpc_workqueue;
426/* 426/*
427 * ar-accept.c 427 * ar-accept.c
428 */ 428 */
429extern void rxrpc_accept_incoming_calls(struct work_struct *); 429void rxrpc_accept_incoming_calls(struct work_struct *);
430extern struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *, 430struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *, unsigned long);
431 unsigned long); 431int rxrpc_reject_call(struct rxrpc_sock *);
432extern int rxrpc_reject_call(struct rxrpc_sock *);
433 432
434/* 433/*
435 * ar-ack.c 434 * ar-ack.c
436 */ 435 */
437extern void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); 436void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool);
438extern void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); 437void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool);
439extern void rxrpc_process_call(struct work_struct *); 438void rxrpc_process_call(struct work_struct *);
440 439
441/* 440/*
442 * ar-call.c 441 * ar-call.c
@@ -445,19 +444,18 @@ extern struct kmem_cache *rxrpc_call_jar;
445extern struct list_head rxrpc_calls; 444extern struct list_head rxrpc_calls;
446extern rwlock_t rxrpc_call_lock; 445extern rwlock_t rxrpc_call_lock;
447 446
448extern struct rxrpc_call *rxrpc_get_client_call(struct rxrpc_sock *, 447struct rxrpc_call *rxrpc_get_client_call(struct rxrpc_sock *,
449 struct rxrpc_transport *, 448 struct rxrpc_transport *,
450 struct rxrpc_conn_bundle *, 449 struct rxrpc_conn_bundle *,
451 unsigned long, int, gfp_t); 450 unsigned long, int, gfp_t);
452extern struct rxrpc_call *rxrpc_incoming_call(struct rxrpc_sock *, 451struct rxrpc_call *rxrpc_incoming_call(struct rxrpc_sock *,
453 struct rxrpc_connection *, 452 struct rxrpc_connection *,
454 struct rxrpc_header *, gfp_t); 453 struct rxrpc_header *, gfp_t);
455extern struct rxrpc_call *rxrpc_find_server_call(struct rxrpc_sock *, 454struct rxrpc_call *rxrpc_find_server_call(struct rxrpc_sock *, unsigned long);
456 unsigned long); 455void rxrpc_release_call(struct rxrpc_call *);
457extern void rxrpc_release_call(struct rxrpc_call *); 456void rxrpc_release_calls_on_socket(struct rxrpc_sock *);
458extern void rxrpc_release_calls_on_socket(struct rxrpc_sock *); 457void __rxrpc_put_call(struct rxrpc_call *);
459extern void __rxrpc_put_call(struct rxrpc_call *); 458void __exit rxrpc_destroy_all_calls(void);
460extern void __exit rxrpc_destroy_all_calls(void);
461 459
462/* 460/*
463 * ar-connection.c 461 * ar-connection.c
@@ -465,19 +463,16 @@ extern void __exit rxrpc_destroy_all_calls(void);
465extern struct list_head rxrpc_connections; 463extern struct list_head rxrpc_connections;
466extern rwlock_t rxrpc_connection_lock; 464extern rwlock_t rxrpc_connection_lock;
467 465
468extern struct rxrpc_conn_bundle *rxrpc_get_bundle(struct rxrpc_sock *, 466struct rxrpc_conn_bundle *rxrpc_get_bundle(struct rxrpc_sock *,
469 struct rxrpc_transport *, 467 struct rxrpc_transport *,
470 struct key *, 468 struct key *, __be16, gfp_t);
471 __be16, gfp_t); 469void rxrpc_put_bundle(struct rxrpc_transport *, struct rxrpc_conn_bundle *);
472extern void rxrpc_put_bundle(struct rxrpc_transport *, 470int rxrpc_connect_call(struct rxrpc_sock *, struct rxrpc_transport *,
473 struct rxrpc_conn_bundle *); 471 struct rxrpc_conn_bundle *, struct rxrpc_call *, gfp_t);
474extern int rxrpc_connect_call(struct rxrpc_sock *, struct rxrpc_transport *, 472void rxrpc_put_connection(struct rxrpc_connection *);
475 struct rxrpc_conn_bundle *, struct rxrpc_call *, 473void __exit rxrpc_destroy_all_connections(void);
476 gfp_t); 474struct rxrpc_connection *rxrpc_find_connection(struct rxrpc_transport *,
477extern void rxrpc_put_connection(struct rxrpc_connection *); 475 struct rxrpc_header *);
478extern void __exit rxrpc_destroy_all_connections(void);
479extern struct rxrpc_connection *rxrpc_find_connection(struct rxrpc_transport *,
480 struct rxrpc_header *);
481extern struct rxrpc_connection * 476extern struct rxrpc_connection *
482rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *, 477rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *,
483 gfp_t); 478 gfp_t);
@@ -485,15 +480,15 @@ rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *,
485/* 480/*
486 * ar-connevent.c 481 * ar-connevent.c
487 */ 482 */
488extern void rxrpc_process_connection(struct work_struct *); 483void rxrpc_process_connection(struct work_struct *);
489extern void rxrpc_reject_packet(struct rxrpc_local *, struct sk_buff *); 484void rxrpc_reject_packet(struct rxrpc_local *, struct sk_buff *);
490extern void rxrpc_reject_packets(struct work_struct *); 485void rxrpc_reject_packets(struct work_struct *);
491 486
492/* 487/*
493 * ar-error.c 488 * ar-error.c
494 */ 489 */
495extern void rxrpc_UDP_error_report(struct sock *); 490void rxrpc_UDP_error_report(struct sock *);
496extern void rxrpc_UDP_error_handler(struct work_struct *); 491void rxrpc_UDP_error_handler(struct work_struct *);
497 492
498/* 493/*
499 * ar-input.c 494 * ar-input.c
@@ -501,18 +496,17 @@ extern void rxrpc_UDP_error_handler(struct work_struct *);
501extern unsigned long rxrpc_ack_timeout; 496extern unsigned long rxrpc_ack_timeout;
502extern const char *rxrpc_pkts[]; 497extern const char *rxrpc_pkts[];
503 498
504extern void rxrpc_data_ready(struct sock *, int); 499void rxrpc_data_ready(struct sock *, int);
505extern int rxrpc_queue_rcv_skb(struct rxrpc_call *, struct sk_buff *, bool, 500int rxrpc_queue_rcv_skb(struct rxrpc_call *, struct sk_buff *, bool, bool);
506 bool); 501void rxrpc_fast_process_packet(struct rxrpc_call *, struct sk_buff *);
507extern void rxrpc_fast_process_packet(struct rxrpc_call *, struct sk_buff *);
508 502
509/* 503/*
510 * ar-local.c 504 * ar-local.c
511 */ 505 */
512extern rwlock_t rxrpc_local_lock; 506extern rwlock_t rxrpc_local_lock;
513extern struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *); 507struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *);
514extern void rxrpc_put_local(struct rxrpc_local *); 508void rxrpc_put_local(struct rxrpc_local *);
515extern void __exit rxrpc_destroy_all_locals(void); 509void __exit rxrpc_destroy_all_locals(void);
516 510
517/* 511/*
518 * ar-key.c 512 * ar-key.c
@@ -520,31 +514,29 @@ extern void __exit rxrpc_destroy_all_locals(void);
520extern struct key_type key_type_rxrpc; 514extern struct key_type key_type_rxrpc;
521extern struct key_type key_type_rxrpc_s; 515extern struct key_type key_type_rxrpc_s;
522 516
523extern int rxrpc_request_key(struct rxrpc_sock *, char __user *, int); 517int rxrpc_request_key(struct rxrpc_sock *, char __user *, int);
524extern int rxrpc_server_keyring(struct rxrpc_sock *, char __user *, int); 518int rxrpc_server_keyring(struct rxrpc_sock *, char __user *, int);
525extern int rxrpc_get_server_data_key(struct rxrpc_connection *, const void *, 519int rxrpc_get_server_data_key(struct rxrpc_connection *, const void *, time_t,
526 time_t, u32); 520 u32);
527 521
528/* 522/*
529 * ar-output.c 523 * ar-output.c
530 */ 524 */
531extern int rxrpc_resend_timeout; 525extern int rxrpc_resend_timeout;
532 526
533extern int rxrpc_send_packet(struct rxrpc_transport *, struct sk_buff *); 527int rxrpc_send_packet(struct rxrpc_transport *, struct sk_buff *);
534extern int rxrpc_client_sendmsg(struct kiocb *, struct rxrpc_sock *, 528int rxrpc_client_sendmsg(struct kiocb *, struct rxrpc_sock *,
535 struct rxrpc_transport *, struct msghdr *, 529 struct rxrpc_transport *, struct msghdr *, size_t);
536 size_t); 530int rxrpc_server_sendmsg(struct kiocb *, struct rxrpc_sock *, struct msghdr *,
537extern int rxrpc_server_sendmsg(struct kiocb *, struct rxrpc_sock *, 531 size_t);
538 struct msghdr *, size_t);
539 532
540/* 533/*
541 * ar-peer.c 534 * ar-peer.c
542 */ 535 */
543extern struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *, gfp_t); 536struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *, gfp_t);
544extern void rxrpc_put_peer(struct rxrpc_peer *); 537void rxrpc_put_peer(struct rxrpc_peer *);
545extern struct rxrpc_peer *rxrpc_find_peer(struct rxrpc_local *, 538struct rxrpc_peer *rxrpc_find_peer(struct rxrpc_local *, __be32, __be16);
546 __be32, __be16); 539void __exit rxrpc_destroy_all_peers(void);
547extern void __exit rxrpc_destroy_all_peers(void);
548 540
549/* 541/*
550 * ar-proc.c 542 * ar-proc.c
@@ -556,38 +548,36 @@ extern const struct file_operations rxrpc_connection_seq_fops;
556/* 548/*
557 * ar-recvmsg.c 549 * ar-recvmsg.c
558 */ 550 */
559extern void rxrpc_remove_user_ID(struct rxrpc_sock *, struct rxrpc_call *); 551void rxrpc_remove_user_ID(struct rxrpc_sock *, struct rxrpc_call *);
560extern int rxrpc_recvmsg(struct kiocb *, struct socket *, struct msghdr *, 552int rxrpc_recvmsg(struct kiocb *, struct socket *, struct msghdr *, size_t,
561 size_t, int); 553 int);
562 554
563/* 555/*
564 * ar-security.c 556 * ar-security.c
565 */ 557 */
566extern int rxrpc_register_security(struct rxrpc_security *); 558int rxrpc_register_security(struct rxrpc_security *);
567extern void rxrpc_unregister_security(struct rxrpc_security *); 559void rxrpc_unregister_security(struct rxrpc_security *);
568extern int rxrpc_init_client_conn_security(struct rxrpc_connection *); 560int rxrpc_init_client_conn_security(struct rxrpc_connection *);
569extern int rxrpc_init_server_conn_security(struct rxrpc_connection *); 561int rxrpc_init_server_conn_security(struct rxrpc_connection *);
570extern int rxrpc_secure_packet(const struct rxrpc_call *, struct sk_buff *, 562int rxrpc_secure_packet(const struct rxrpc_call *, struct sk_buff *, size_t,
571 size_t, void *); 563 void *);
572extern int rxrpc_verify_packet(const struct rxrpc_call *, struct sk_buff *, 564int rxrpc_verify_packet(const struct rxrpc_call *, struct sk_buff *, u32 *);
573 u32 *); 565void rxrpc_clear_conn_security(struct rxrpc_connection *);
574extern void rxrpc_clear_conn_security(struct rxrpc_connection *);
575 566
576/* 567/*
577 * ar-skbuff.c 568 * ar-skbuff.c
578 */ 569 */
579extern void rxrpc_packet_destructor(struct sk_buff *); 570void rxrpc_packet_destructor(struct sk_buff *);
580 571
581/* 572/*
582 * ar-transport.c 573 * ar-transport.c
583 */ 574 */
584extern struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *, 575struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *,
585 struct rxrpc_peer *, 576 struct rxrpc_peer *, gfp_t);
586 gfp_t); 577void rxrpc_put_transport(struct rxrpc_transport *);
587extern void rxrpc_put_transport(struct rxrpc_transport *); 578void __exit rxrpc_destroy_all_transports(void);
588extern void __exit rxrpc_destroy_all_transports(void); 579struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *,
589extern struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *, 580 struct rxrpc_peer *);
590 struct rxrpc_peer *);
591 581
592/* 582/*
593 * debug tracing 583 * debug tracing
diff --git a/net/tipc/core.h b/net/tipc/core.h
index be72f8cebc53..94895d4e86ab 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -90,21 +90,21 @@ extern int tipc_random __read_mostly;
90/* 90/*
91 * Routines available to privileged subsystems 91 * Routines available to privileged subsystems
92 */ 92 */
93extern int tipc_core_start_net(unsigned long); 93int tipc_core_start_net(unsigned long);
94extern int tipc_handler_start(void); 94int tipc_handler_start(void);
95extern void tipc_handler_stop(void); 95void tipc_handler_stop(void);
96extern int tipc_netlink_start(void); 96int tipc_netlink_start(void);
97extern void tipc_netlink_stop(void); 97void tipc_netlink_stop(void);
98extern int tipc_socket_init(void); 98int tipc_socket_init(void);
99extern void tipc_socket_stop(void); 99void tipc_socket_stop(void);
100extern int tipc_sock_create_local(int type, struct socket **res); 100int tipc_sock_create_local(int type, struct socket **res);
101extern void tipc_sock_release_local(struct socket *sock); 101void tipc_sock_release_local(struct socket *sock);
102extern int tipc_sock_accept_local(struct socket *sock, 102int tipc_sock_accept_local(struct socket *sock, struct socket **newsock,
103 struct socket **newsock, int flags); 103 int flags);
104 104
105#ifdef CONFIG_SYSCTL 105#ifdef CONFIG_SYSCTL
106extern int tipc_register_sysctl(void); 106int tipc_register_sysctl(void);
107extern void tipc_unregister_sysctl(void); 107void tipc_unregister_sysctl(void);
108#else 108#else
109#define tipc_register_sysctl() 0 109#define tipc_register_sysctl() 0
110#define tipc_unregister_sysctl() 110#define tipc_unregister_sysctl()
@@ -201,6 +201,6 @@ static inline struct tipc_msg *buf_msg(struct sk_buff *skb)
201 return (struct tipc_msg *)skb->data; 201 return (struct tipc_msg *)skb->data;
202} 202}
203 203
204extern struct sk_buff *tipc_buf_acquire(u32 size); 204struct sk_buff *tipc_buf_acquire(u32 size);
205 205
206#endif 206#endif
diff --git a/net/wimax/wimax-internal.h b/net/wimax/wimax-internal.h
index 1e743d214856..5dcd9c067bf0 100644
--- a/net/wimax/wimax-internal.h
+++ b/net/wimax/wimax-internal.h
@@ -63,11 +63,11 @@ void __wimax_state_set(struct wimax_dev *wimax_dev, enum wimax_st state)
63{ 63{
64 wimax_dev->state = state; 64 wimax_dev->state = state;
65} 65}
66extern void __wimax_state_change(struct wimax_dev *, enum wimax_st); 66void __wimax_state_change(struct wimax_dev *, enum wimax_st);
67 67
68#ifdef CONFIG_DEBUG_FS 68#ifdef CONFIG_DEBUG_FS
69extern int wimax_debugfs_add(struct wimax_dev *); 69int wimax_debugfs_add(struct wimax_dev *);
70extern void wimax_debugfs_rm(struct wimax_dev *); 70void wimax_debugfs_rm(struct wimax_dev *);
71#else 71#else
72static inline int wimax_debugfs_add(struct wimax_dev *wimax_dev) 72static inline int wimax_debugfs_add(struct wimax_dev *wimax_dev)
73{ 73{
@@ -76,13 +76,13 @@ static inline int wimax_debugfs_add(struct wimax_dev *wimax_dev)
76static inline void wimax_debugfs_rm(struct wimax_dev *wimax_dev) {} 76static inline void wimax_debugfs_rm(struct wimax_dev *wimax_dev) {}
77#endif 77#endif
78 78
79extern void wimax_id_table_add(struct wimax_dev *); 79void wimax_id_table_add(struct wimax_dev *);
80extern struct wimax_dev *wimax_dev_get_by_genl_info(struct genl_info *, int); 80struct wimax_dev *wimax_dev_get_by_genl_info(struct genl_info *, int);
81extern void wimax_id_table_rm(struct wimax_dev *); 81void wimax_id_table_rm(struct wimax_dev *);
82extern void wimax_id_table_release(void); 82void wimax_id_table_release(void);
83 83
84extern int wimax_rfkill_add(struct wimax_dev *); 84int wimax_rfkill_add(struct wimax_dev *);
85extern void wimax_rfkill_rm(struct wimax_dev *); 85void wimax_rfkill_rm(struct wimax_dev *);
86 86
87extern struct genl_family wimax_gnl_family; 87extern struct genl_family wimax_gnl_family;
88extern struct genl_multicast_group wimax_gnl_mcg; 88extern struct genl_multicast_group wimax_gnl_mcg;
diff --git a/net/wireless/core.h b/net/wireless/core.h
index b43efac4efca..74beff1e926f 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -234,10 +234,10 @@ struct cfg80211_beacon_registration {
234}; 234};
235 235
236/* free object */ 236/* free object */
237extern void cfg80211_dev_free(struct cfg80211_registered_device *rdev); 237void cfg80211_dev_free(struct cfg80211_registered_device *rdev);
238 238
239extern int cfg80211_dev_rename(struct cfg80211_registered_device *rdev, 239int cfg80211_dev_rename(struct cfg80211_registered_device *rdev,
240 char *newname); 240 char *newname);
241 241
242void ieee80211_set_bitrate_flags(struct wiphy *wiphy); 242void ieee80211_set_bitrate_flags(struct wiphy *wiphy);
243 243
diff --git a/net/wireless/sysfs.h b/net/wireless/sysfs.h
index 65acbebd3711..b533ed71daff 100644
--- a/net/wireless/sysfs.h
+++ b/net/wireless/sysfs.h
@@ -1,8 +1,8 @@
1#ifndef __WIRELESS_SYSFS_H 1#ifndef __WIRELESS_SYSFS_H
2#define __WIRELESS_SYSFS_H 2#define __WIRELESS_SYSFS_H
3 3
4extern int wiphy_sysfs_init(void); 4int wiphy_sysfs_init(void);
5extern void wiphy_sysfs_exit(void); 5void wiphy_sysfs_exit(void);
6 6
7extern struct class ieee80211_class; 7extern struct class ieee80211_class;
8 8
diff --git a/net/xfrm/xfrm_hash.h b/net/xfrm/xfrm_hash.h
index 716502ada53b..0622d319e1f2 100644
--- a/net/xfrm/xfrm_hash.h
+++ b/net/xfrm/xfrm_hash.h
@@ -130,7 +130,7 @@ static inline unsigned int __addr_hash(const xfrm_address_t *daddr,
130 return h & hmask; 130 return h & hmask;
131} 131}
132 132
133extern struct hlist_head *xfrm_hash_alloc(unsigned int sz); 133struct hlist_head *xfrm_hash_alloc(unsigned int sz);
134extern void xfrm_hash_free(struct hlist_head *n, unsigned int sz); 134void xfrm_hash_free(struct hlist_head *n, unsigned int sz);
135 135
136#endif /* _XFRM_HASH_H */ 136#endif /* _XFRM_HASH_H */