diff options
author | Joe Perches <joe@perches.com> | 2013-10-18 16:48:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-19 19:12:11 -0400 |
commit | c1b1203d65955c179fec617ff17a21273f33a414 (patch) | |
tree | a84a93bae0abe5e796dce767a320ab4262ffb63f | |
parent | 7e58487b8cf5871d2a0fa03892dbd4b3a620d07f (diff) |
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: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/irda/irnet/irnet.h | 15 | ||||
-rw-r--r-- | net/l2tp/l2tp_core.h | 57 | ||||
-rw-r--r-- | net/mac80211/rate.h | 12 | ||||
-rw-r--r-- | net/netfilter/nf_internals.h | 28 | ||||
-rw-r--r-- | net/rds/rds.h | 2 | ||||
-rw-r--r-- | net/rxrpc/ar-internal.h | 150 | ||||
-rw-r--r-- | net/tipc/core.h | 28 | ||||
-rw-r--r-- | net/wimax/wimax-internal.h | 18 | ||||
-rw-r--r-- | net/wireless/core.h | 6 | ||||
-rw-r--r-- | net/wireless/sysfs.h | 4 | ||||
-rw-r--r-- | net/xfrm/xfrm_hash.h | 4 |
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 -------------------------- */ |
512 | extern int | 512 | int irda_irnet_create(irnet_socket *); /* Initialise an IrNET socket */ |
513 | irda_irnet_create(irnet_socket *); /* Initialise a IrNET socket */ | 513 | int irda_irnet_connect(irnet_socket *); /* Try to connect over IrDA */ |
514 | extern int | 514 | void irda_irnet_destroy(irnet_socket *); /* Teardown an IrNET socket */ |
515 | irda_irnet_connect(irnet_socket *); /* Try to connect over IrDA */ | 515 | int irda_irnet_init(void); /* Initialise IrDA part of IrNET */ |
516 | extern void | 516 | void irda_irnet_cleanup(void); /* Teardown IrDA part of IrNET */ |
517 | irda_irnet_destroy(irnet_socket *); /* Teardown a IrNET socket */ | ||
518 | extern int | ||
519 | irda_irnet_init(void); /* Initialise IrDA part of IrNET */ | ||
520 | extern 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 | ||
241 | extern struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel); | 241 | struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel); |
242 | extern void l2tp_tunnel_sock_put(struct sock *sk); | 242 | void l2tp_tunnel_sock_put(struct sock *sk); |
243 | extern struct l2tp_session *l2tp_session_find(struct net *net, struct l2tp_tunnel *tunnel, u32 session_id); | 243 | struct l2tp_session *l2tp_session_find(struct net *net, |
244 | extern struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth); | 244 | struct l2tp_tunnel *tunnel, |
245 | extern struct l2tp_session *l2tp_session_find_by_ifname(struct net *net, char *ifname); | 245 | u32 session_id); |
246 | extern struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id); | 246 | struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth); |
247 | extern struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth); | 247 | struct l2tp_session *l2tp_session_find_by_ifname(struct net *net, char *ifname); |
248 | 248 | struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id); | |
249 | 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); | 249 | struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth); |
250 | extern void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel); | 250 | |
251 | extern int l2tp_tunnel_delete(struct l2tp_tunnel *tunnel); | 251 | int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, |
252 | 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); | 252 | u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, |
253 | extern void __l2tp_session_unhash(struct l2tp_session *session); | 253 | struct l2tp_tunnel **tunnelp); |
254 | extern int l2tp_session_delete(struct l2tp_session *session); | 254 | void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel); |
255 | extern void l2tp_session_free(struct l2tp_session *session); | 255 | int l2tp_tunnel_delete(struct l2tp_tunnel *tunnel); |
256 | 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)); | 256 | struct l2tp_session *l2tp_session_create(int priv_size, |
257 | extern int l2tp_session_queue_purge(struct l2tp_session *session); | 257 | struct l2tp_tunnel *tunnel, |
258 | extern 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); | |
260 | extern int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb, int hdr_len); | 260 | void __l2tp_session_unhash(struct l2tp_session *session); |
261 | 261 | int l2tp_session_delete(struct l2tp_session *session); | |
262 | extern int l2tp_nl_register_ops(enum l2tp_pwtype pw_type, const struct l2tp_nl_cmd_ops *ops); | 262 | void l2tp_session_free(struct l2tp_session *session); |
263 | extern void l2tp_nl_unregister_ops(enum l2tp_pwtype pw_type); | 263 | void 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)); | ||
266 | int l2tp_session_queue_purge(struct l2tp_session *session); | ||
267 | int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb); | ||
268 | |||
269 | int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb, | ||
270 | int hdr_len); | ||
271 | |||
272 | int l2tp_nl_register_ops(enum l2tp_pwtype pw_type, | ||
273 | const struct l2tp_nl_cmd_ops *ops); | ||
274 | void 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 |
147 | extern int rc80211_pid_init(void); | 147 | int rc80211_pid_init(void); |
148 | extern void rc80211_pid_exit(void); | 148 | void rc80211_pid_exit(void); |
149 | #else | 149 | #else |
150 | static inline int rc80211_pid_init(void) | 150 | static 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 |
160 | extern int rc80211_minstrel_init(void); | 160 | int rc80211_minstrel_init(void); |
161 | extern void rc80211_minstrel_exit(void); | 161 | void rc80211_minstrel_exit(void); |
162 | #else | 162 | #else |
163 | static inline int rc80211_minstrel_init(void) | 163 | static 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 |
173 | extern int rc80211_minstrel_ht_init(void); | 173 | int rc80211_minstrel_ht_init(void); |
174 | extern void rc80211_minstrel_ht_exit(void); | 174 | void rc80211_minstrel_ht_exit(void); |
175 | #else | 175 | #else |
176 | static inline int rc80211_minstrel_ht_init(void) | 176 | static 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 */ |
16 | extern unsigned int nf_iterate(struct list_head *head, | 16 | unsigned 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 */ |
26 | extern int nf_queue(struct sk_buff *skb, | 23 | int 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, | 27 | int __init netfilter_queue_init(void); |
31 | int (*okfn)(struct sk_buff *), | ||
32 | unsigned int queuenum); | ||
33 | extern int __init netfilter_queue_init(void); | ||
34 | 28 | ||
35 | /* nf_log.c */ | 29 | /* nf_log.c */ |
36 | extern int __init netfilter_log_init(void); | 30 | int __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); | |||
749 | int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm, | 749 | int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm, |
750 | struct cmsghdr *cmsg); | 750 | struct cmsghdr *cmsg); |
751 | 751 | ||
752 | extern void __rds_put_mr_final(struct rds_mr *mr); | 752 | void __rds_put_mr_final(struct rds_mr *mr); |
753 | static inline void rds_mr_put(struct rds_mr *mr) | 753 | static 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 | */ |
429 | extern void rxrpc_accept_incoming_calls(struct work_struct *); | 429 | void rxrpc_accept_incoming_calls(struct work_struct *); |
430 | extern struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *, | 430 | struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *, unsigned long); |
431 | unsigned long); | 431 | int rxrpc_reject_call(struct rxrpc_sock *); |
432 | extern int rxrpc_reject_call(struct rxrpc_sock *); | ||
433 | 432 | ||
434 | /* | 433 | /* |
435 | * ar-ack.c | 434 | * ar-ack.c |
436 | */ | 435 | */ |
437 | extern void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); | 436 | void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); |
438 | extern void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); | 437 | void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); |
439 | extern void rxrpc_process_call(struct work_struct *); | 438 | void 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; | |||
445 | extern struct list_head rxrpc_calls; | 444 | extern struct list_head rxrpc_calls; |
446 | extern rwlock_t rxrpc_call_lock; | 445 | extern rwlock_t rxrpc_call_lock; |
447 | 446 | ||
448 | extern struct rxrpc_call *rxrpc_get_client_call(struct rxrpc_sock *, | 447 | struct 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); |
452 | extern struct rxrpc_call *rxrpc_incoming_call(struct rxrpc_sock *, | 451 | struct 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); |
455 | extern struct rxrpc_call *rxrpc_find_server_call(struct rxrpc_sock *, | 454 | struct rxrpc_call *rxrpc_find_server_call(struct rxrpc_sock *, unsigned long); |
456 | unsigned long); | 455 | void rxrpc_release_call(struct rxrpc_call *); |
457 | extern void rxrpc_release_call(struct rxrpc_call *); | 456 | void rxrpc_release_calls_on_socket(struct rxrpc_sock *); |
458 | extern void rxrpc_release_calls_on_socket(struct rxrpc_sock *); | 457 | void __rxrpc_put_call(struct rxrpc_call *); |
459 | extern void __rxrpc_put_call(struct rxrpc_call *); | 458 | void __exit rxrpc_destroy_all_calls(void); |
460 | extern 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); | |||
465 | extern struct list_head rxrpc_connections; | 463 | extern struct list_head rxrpc_connections; |
466 | extern rwlock_t rxrpc_connection_lock; | 464 | extern rwlock_t rxrpc_connection_lock; |
467 | 465 | ||
468 | extern struct rxrpc_conn_bundle *rxrpc_get_bundle(struct rxrpc_sock *, | 466 | struct 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); | 469 | void rxrpc_put_bundle(struct rxrpc_transport *, struct rxrpc_conn_bundle *); |
472 | extern void rxrpc_put_bundle(struct rxrpc_transport *, | 470 | int rxrpc_connect_call(struct rxrpc_sock *, struct rxrpc_transport *, |
473 | struct rxrpc_conn_bundle *); | 471 | struct rxrpc_conn_bundle *, struct rxrpc_call *, gfp_t); |
474 | extern int rxrpc_connect_call(struct rxrpc_sock *, struct rxrpc_transport *, | 472 | void rxrpc_put_connection(struct rxrpc_connection *); |
475 | struct rxrpc_conn_bundle *, struct rxrpc_call *, | 473 | void __exit rxrpc_destroy_all_connections(void); |
476 | gfp_t); | 474 | struct rxrpc_connection *rxrpc_find_connection(struct rxrpc_transport *, |
477 | extern void rxrpc_put_connection(struct rxrpc_connection *); | 475 | struct rxrpc_header *); |
478 | extern void __exit rxrpc_destroy_all_connections(void); | ||
479 | extern struct rxrpc_connection *rxrpc_find_connection(struct rxrpc_transport *, | ||
480 | struct rxrpc_header *); | ||
481 | extern struct rxrpc_connection * | 476 | extern struct rxrpc_connection * |
482 | rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *, | 477 | rxrpc_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 | */ |
488 | extern void rxrpc_process_connection(struct work_struct *); | 483 | void rxrpc_process_connection(struct work_struct *); |
489 | extern void rxrpc_reject_packet(struct rxrpc_local *, struct sk_buff *); | 484 | void rxrpc_reject_packet(struct rxrpc_local *, struct sk_buff *); |
490 | extern void rxrpc_reject_packets(struct work_struct *); | 485 | void rxrpc_reject_packets(struct work_struct *); |
491 | 486 | ||
492 | /* | 487 | /* |
493 | * ar-error.c | 488 | * ar-error.c |
494 | */ | 489 | */ |
495 | extern void rxrpc_UDP_error_report(struct sock *); | 490 | void rxrpc_UDP_error_report(struct sock *); |
496 | extern void rxrpc_UDP_error_handler(struct work_struct *); | 491 | void 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 *); | |||
501 | extern unsigned long rxrpc_ack_timeout; | 496 | extern unsigned long rxrpc_ack_timeout; |
502 | extern const char *rxrpc_pkts[]; | 497 | extern const char *rxrpc_pkts[]; |
503 | 498 | ||
504 | extern void rxrpc_data_ready(struct sock *, int); | 499 | void rxrpc_data_ready(struct sock *, int); |
505 | extern int rxrpc_queue_rcv_skb(struct rxrpc_call *, struct sk_buff *, bool, | 500 | int rxrpc_queue_rcv_skb(struct rxrpc_call *, struct sk_buff *, bool, bool); |
506 | bool); | 501 | void rxrpc_fast_process_packet(struct rxrpc_call *, struct sk_buff *); |
507 | extern 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 | */ |
512 | extern rwlock_t rxrpc_local_lock; | 506 | extern rwlock_t rxrpc_local_lock; |
513 | extern struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *); | 507 | struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *); |
514 | extern void rxrpc_put_local(struct rxrpc_local *); | 508 | void rxrpc_put_local(struct rxrpc_local *); |
515 | extern void __exit rxrpc_destroy_all_locals(void); | 509 | void __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); | |||
520 | extern struct key_type key_type_rxrpc; | 514 | extern struct key_type key_type_rxrpc; |
521 | extern struct key_type key_type_rxrpc_s; | 515 | extern struct key_type key_type_rxrpc_s; |
522 | 516 | ||
523 | extern int rxrpc_request_key(struct rxrpc_sock *, char __user *, int); | 517 | int rxrpc_request_key(struct rxrpc_sock *, char __user *, int); |
524 | extern int rxrpc_server_keyring(struct rxrpc_sock *, char __user *, int); | 518 | int rxrpc_server_keyring(struct rxrpc_sock *, char __user *, int); |
525 | extern int rxrpc_get_server_data_key(struct rxrpc_connection *, const void *, | 519 | int 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 | */ |
531 | extern int rxrpc_resend_timeout; | 525 | extern int rxrpc_resend_timeout; |
532 | 526 | ||
533 | extern int rxrpc_send_packet(struct rxrpc_transport *, struct sk_buff *); | 527 | int rxrpc_send_packet(struct rxrpc_transport *, struct sk_buff *); |
534 | extern int rxrpc_client_sendmsg(struct kiocb *, struct rxrpc_sock *, | 528 | int 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); | 530 | int rxrpc_server_sendmsg(struct kiocb *, struct rxrpc_sock *, struct msghdr *, |
537 | extern 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 | */ |
543 | extern struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *, gfp_t); | 536 | struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *, gfp_t); |
544 | extern void rxrpc_put_peer(struct rxrpc_peer *); | 537 | void rxrpc_put_peer(struct rxrpc_peer *); |
545 | extern struct rxrpc_peer *rxrpc_find_peer(struct rxrpc_local *, | 538 | struct rxrpc_peer *rxrpc_find_peer(struct rxrpc_local *, __be32, __be16); |
546 | __be32, __be16); | 539 | void __exit rxrpc_destroy_all_peers(void); |
547 | extern 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 | */ |
559 | extern void rxrpc_remove_user_ID(struct rxrpc_sock *, struct rxrpc_call *); | 551 | void rxrpc_remove_user_ID(struct rxrpc_sock *, struct rxrpc_call *); |
560 | extern int rxrpc_recvmsg(struct kiocb *, struct socket *, struct msghdr *, | 552 | int 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 | */ |
566 | extern int rxrpc_register_security(struct rxrpc_security *); | 558 | int rxrpc_register_security(struct rxrpc_security *); |
567 | extern void rxrpc_unregister_security(struct rxrpc_security *); | 559 | void rxrpc_unregister_security(struct rxrpc_security *); |
568 | extern int rxrpc_init_client_conn_security(struct rxrpc_connection *); | 560 | int rxrpc_init_client_conn_security(struct rxrpc_connection *); |
569 | extern int rxrpc_init_server_conn_security(struct rxrpc_connection *); | 561 | int rxrpc_init_server_conn_security(struct rxrpc_connection *); |
570 | extern int rxrpc_secure_packet(const struct rxrpc_call *, struct sk_buff *, | 562 | int rxrpc_secure_packet(const struct rxrpc_call *, struct sk_buff *, size_t, |
571 | size_t, void *); | 563 | void *); |
572 | extern int rxrpc_verify_packet(const struct rxrpc_call *, struct sk_buff *, | 564 | int rxrpc_verify_packet(const struct rxrpc_call *, struct sk_buff *, u32 *); |
573 | u32 *); | 565 | void rxrpc_clear_conn_security(struct rxrpc_connection *); |
574 | extern void rxrpc_clear_conn_security(struct rxrpc_connection *); | ||
575 | 566 | ||
576 | /* | 567 | /* |
577 | * ar-skbuff.c | 568 | * ar-skbuff.c |
578 | */ | 569 | */ |
579 | extern void rxrpc_packet_destructor(struct sk_buff *); | 570 | void rxrpc_packet_destructor(struct sk_buff *); |
580 | 571 | ||
581 | /* | 572 | /* |
582 | * ar-transport.c | 573 | * ar-transport.c |
583 | */ | 574 | */ |
584 | extern struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *, | 575 | struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *, |
585 | struct rxrpc_peer *, | 576 | struct rxrpc_peer *, gfp_t); |
586 | gfp_t); | 577 | void rxrpc_put_transport(struct rxrpc_transport *); |
587 | extern void rxrpc_put_transport(struct rxrpc_transport *); | 578 | void __exit rxrpc_destroy_all_transports(void); |
588 | extern void __exit rxrpc_destroy_all_transports(void); | 579 | struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *, |
589 | extern 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 | */ |
93 | extern int tipc_core_start_net(unsigned long); | 93 | int tipc_core_start_net(unsigned long); |
94 | extern int tipc_handler_start(void); | 94 | int tipc_handler_start(void); |
95 | extern void tipc_handler_stop(void); | 95 | void tipc_handler_stop(void); |
96 | extern int tipc_netlink_start(void); | 96 | int tipc_netlink_start(void); |
97 | extern void tipc_netlink_stop(void); | 97 | void tipc_netlink_stop(void); |
98 | extern int tipc_socket_init(void); | 98 | int tipc_socket_init(void); |
99 | extern void tipc_socket_stop(void); | 99 | void tipc_socket_stop(void); |
100 | extern int tipc_sock_create_local(int type, struct socket **res); | 100 | int tipc_sock_create_local(int type, struct socket **res); |
101 | extern void tipc_sock_release_local(struct socket *sock); | 101 | void tipc_sock_release_local(struct socket *sock); |
102 | extern int tipc_sock_accept_local(struct socket *sock, | 102 | int 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 |
106 | extern int tipc_register_sysctl(void); | 106 | int tipc_register_sysctl(void); |
107 | extern void tipc_unregister_sysctl(void); | 107 | void 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 | ||
204 | extern struct sk_buff *tipc_buf_acquire(u32 size); | 204 | struct 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 | } |
66 | extern void __wimax_state_change(struct wimax_dev *, enum wimax_st); | 66 | void __wimax_state_change(struct wimax_dev *, enum wimax_st); |
67 | 67 | ||
68 | #ifdef CONFIG_DEBUG_FS | 68 | #ifdef CONFIG_DEBUG_FS |
69 | extern int wimax_debugfs_add(struct wimax_dev *); | 69 | int wimax_debugfs_add(struct wimax_dev *); |
70 | extern void wimax_debugfs_rm(struct wimax_dev *); | 70 | void wimax_debugfs_rm(struct wimax_dev *); |
71 | #else | 71 | #else |
72 | static inline int wimax_debugfs_add(struct wimax_dev *wimax_dev) | 72 | static 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) | |||
76 | static inline void wimax_debugfs_rm(struct wimax_dev *wimax_dev) {} | 76 | static inline void wimax_debugfs_rm(struct wimax_dev *wimax_dev) {} |
77 | #endif | 77 | #endif |
78 | 78 | ||
79 | extern void wimax_id_table_add(struct wimax_dev *); | 79 | void wimax_id_table_add(struct wimax_dev *); |
80 | extern struct wimax_dev *wimax_dev_get_by_genl_info(struct genl_info *, int); | 80 | struct wimax_dev *wimax_dev_get_by_genl_info(struct genl_info *, int); |
81 | extern void wimax_id_table_rm(struct wimax_dev *); | 81 | void wimax_id_table_rm(struct wimax_dev *); |
82 | extern void wimax_id_table_release(void); | 82 | void wimax_id_table_release(void); |
83 | 83 | ||
84 | extern int wimax_rfkill_add(struct wimax_dev *); | 84 | int wimax_rfkill_add(struct wimax_dev *); |
85 | extern void wimax_rfkill_rm(struct wimax_dev *); | 85 | void wimax_rfkill_rm(struct wimax_dev *); |
86 | 86 | ||
87 | extern struct genl_family wimax_gnl_family; | 87 | extern struct genl_family wimax_gnl_family; |
88 | extern struct genl_multicast_group wimax_gnl_mcg; | 88 | extern 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 */ |
237 | extern void cfg80211_dev_free(struct cfg80211_registered_device *rdev); | 237 | void cfg80211_dev_free(struct cfg80211_registered_device *rdev); |
238 | 238 | ||
239 | extern int cfg80211_dev_rename(struct cfg80211_registered_device *rdev, | 239 | int cfg80211_dev_rename(struct cfg80211_registered_device *rdev, |
240 | char *newname); | 240 | char *newname); |
241 | 241 | ||
242 | void ieee80211_set_bitrate_flags(struct wiphy *wiphy); | 242 | void 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 | ||
4 | extern int wiphy_sysfs_init(void); | 4 | int wiphy_sysfs_init(void); |
5 | extern void wiphy_sysfs_exit(void); | 5 | void wiphy_sysfs_exit(void); |
6 | 6 | ||
7 | extern struct class ieee80211_class; | 7 | extern 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 | ||
133 | extern struct hlist_head *xfrm_hash_alloc(unsigned int sz); | 133 | struct hlist_head *xfrm_hash_alloc(unsigned int sz); |
134 | extern void xfrm_hash_free(struct hlist_head *n, unsigned int sz); | 134 | void xfrm_hash_free(struct hlist_head *n, unsigned int sz); |
135 | 135 | ||
136 | #endif /* _XFRM_HASH_H */ | 136 | #endif /* _XFRM_HASH_H */ |