diff options
author | Zach Brown <zach.brown@oracle.com> | 2010-07-09 15:26:20 -0400 |
---|---|---|
committer | Andy Grover <andy.grover@oracle.com> | 2010-09-08 21:16:39 -0400 |
commit | ef87b7ea39a91906218a262686bcb8bad8b6b46e (patch) | |
tree | 4fe72c5b5f788d8109e715012ce2af57bba807d7 | |
parent | c20f5b9633bb0953bd2422f0f1430a2028cdbd0a (diff) |
RDS: remove __init and __exit annotation
The trivial amount of memory saved isn't worth the cost of dealing with section
mismatches.
Signed-off-by: Zach Brown <zach.brown@oracle.com>
-rw-r--r-- | net/rds/af_rds.c | 4 | ||||
-rw-r--r-- | net/rds/connection.c | 2 | ||||
-rw-r--r-- | net/rds/ib.c | 2 | ||||
-rw-r--r-- | net/rds/ib.h | 10 | ||||
-rw-r--r-- | net/rds/ib_rdma.c | 4 | ||||
-rw-r--r-- | net/rds/ib_recv.c | 2 | ||||
-rw-r--r-- | net/rds/ib_sysctl.c | 2 | ||||
-rw-r--r-- | net/rds/iw.c | 2 | ||||
-rw-r--r-- | net/rds/iw.h | 6 | ||||
-rw-r--r-- | net/rds/iw_recv.c | 2 | ||||
-rw-r--r-- | net/rds/iw_sysctl.c | 2 | ||||
-rw-r--r-- | net/rds/rdma_transport.c | 4 | ||||
-rw-r--r-- | net/rds/rds.h | 10 | ||||
-rw-r--r-- | net/rds/stats.c | 2 | ||||
-rw-r--r-- | net/rds/sysctl.c | 2 | ||||
-rw-r--r-- | net/rds/tcp.c | 2 | ||||
-rw-r--r-- | net/rds/tcp.h | 6 | ||||
-rw-r--r-- | net/rds/tcp_listen.c | 2 | ||||
-rw-r--r-- | net/rds/tcp_recv.c | 2 | ||||
-rw-r--r-- | net/rds/threads.c | 2 |
20 files changed, 35 insertions, 35 deletions
diff --git a/net/rds/af_rds.c b/net/rds/af_rds.c index f16d2a92cb89..57ef0ec4f03d 100644 --- a/net/rds/af_rds.c +++ b/net/rds/af_rds.c | |||
@@ -521,7 +521,7 @@ out: | |||
521 | spin_unlock_irqrestore(&rds_sock_lock, flags); | 521 | spin_unlock_irqrestore(&rds_sock_lock, flags); |
522 | } | 522 | } |
523 | 523 | ||
524 | static void __exit rds_exit(void) | 524 | static void rds_exit(void) |
525 | { | 525 | { |
526 | sock_unregister(rds_family_ops.family); | 526 | sock_unregister(rds_family_ops.family); |
527 | proto_unregister(&rds_proto); | 527 | proto_unregister(&rds_proto); |
@@ -536,7 +536,7 @@ static void __exit rds_exit(void) | |||
536 | } | 536 | } |
537 | module_exit(rds_exit); | 537 | module_exit(rds_exit); |
538 | 538 | ||
539 | static int __init rds_init(void) | 539 | static int rds_init(void) |
540 | { | 540 | { |
541 | int ret; | 541 | int ret; |
542 | 542 | ||
diff --git a/net/rds/connection.c b/net/rds/connection.c index 7670b45680e1..0de40d9563ca 100644 --- a/net/rds/connection.c +++ b/net/rds/connection.c | |||
@@ -488,7 +488,7 @@ static void rds_conn_info(struct socket *sock, unsigned int len, | |||
488 | sizeof(struct rds_info_connection)); | 488 | sizeof(struct rds_info_connection)); |
489 | } | 489 | } |
490 | 490 | ||
491 | int __init rds_conn_init(void) | 491 | int rds_conn_init(void) |
492 | { | 492 | { |
493 | rds_conn_slab = kmem_cache_create("rds_connection", | 493 | rds_conn_slab = kmem_cache_create("rds_connection", |
494 | sizeof(struct rds_connection), | 494 | sizeof(struct rds_connection), |
diff --git a/net/rds/ib.c b/net/rds/ib.c index d2007b931616..3eb5617649c6 100644 --- a/net/rds/ib.c +++ b/net/rds/ib.c | |||
@@ -381,7 +381,7 @@ struct rds_transport rds_ib_transport = { | |||
381 | .t_type = RDS_TRANS_IB | 381 | .t_type = RDS_TRANS_IB |
382 | }; | 382 | }; |
383 | 383 | ||
384 | int __init rds_ib_init(void) | 384 | int rds_ib_init(void) |
385 | { | 385 | { |
386 | int ret; | 386 | int ret; |
387 | 387 | ||
diff --git a/net/rds/ib.h b/net/rds/ib.h index fd4ea69d2443..acda2dbc6576 100644 --- a/net/rds/ib.h +++ b/net/rds/ib.h | |||
@@ -282,7 +282,7 @@ void rds_ib_conn_free(void *arg); | |||
282 | int rds_ib_conn_connect(struct rds_connection *conn); | 282 | int rds_ib_conn_connect(struct rds_connection *conn); |
283 | void rds_ib_conn_shutdown(struct rds_connection *conn); | 283 | void rds_ib_conn_shutdown(struct rds_connection *conn); |
284 | void rds_ib_state_change(struct sock *sk); | 284 | void rds_ib_state_change(struct sock *sk); |
285 | int __init rds_ib_listen_init(void); | 285 | int rds_ib_listen_init(void); |
286 | void rds_ib_listen_stop(void); | 286 | void rds_ib_listen_stop(void); |
287 | void __rds_ib_conn_error(struct rds_connection *conn, const char *, ...); | 287 | void __rds_ib_conn_error(struct rds_connection *conn, const char *, ...); |
288 | int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id, | 288 | int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id, |
@@ -308,11 +308,11 @@ void *rds_ib_get_mr(struct scatterlist *sg, unsigned long nents, | |||
308 | void rds_ib_sync_mr(void *trans_private, int dir); | 308 | void rds_ib_sync_mr(void *trans_private, int dir); |
309 | void rds_ib_free_mr(void *trans_private, int invalidate); | 309 | void rds_ib_free_mr(void *trans_private, int invalidate); |
310 | void rds_ib_flush_mrs(void); | 310 | void rds_ib_flush_mrs(void); |
311 | int __init rds_ib_fmr_init(void); | 311 | int rds_ib_fmr_init(void); |
312 | void __exit rds_ib_fmr_exit(void); | 312 | void rds_ib_fmr_exit(void); |
313 | 313 | ||
314 | /* ib_recv.c */ | 314 | /* ib_recv.c */ |
315 | int __init rds_ib_recv_init(void); | 315 | int rds_ib_recv_init(void); |
316 | void rds_ib_recv_exit(void); | 316 | void rds_ib_recv_exit(void); |
317 | int rds_ib_recv(struct rds_connection *conn); | 317 | int rds_ib_recv(struct rds_connection *conn); |
318 | int rds_ib_recv_alloc_caches(struct rds_ib_connection *ic); | 318 | int rds_ib_recv_alloc_caches(struct rds_ib_connection *ic); |
@@ -363,7 +363,7 @@ unsigned int rds_ib_stats_info_copy(struct rds_info_iterator *iter, | |||
363 | unsigned int avail); | 363 | unsigned int avail); |
364 | 364 | ||
365 | /* ib_sysctl.c */ | 365 | /* ib_sysctl.c */ |
366 | int __init rds_ib_sysctl_init(void); | 366 | int rds_ib_sysctl_init(void); |
367 | void rds_ib_sysctl_exit(void); | 367 | void rds_ib_sysctl_exit(void); |
368 | extern unsigned long rds_ib_sysctl_max_send_wr; | 368 | extern unsigned long rds_ib_sysctl_max_send_wr; |
369 | extern unsigned long rds_ib_sysctl_max_recv_wr; | 369 | extern unsigned long rds_ib_sysctl_max_recv_wr; |
diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c index 0eb597670c5b..3efdddc39d49 100644 --- a/net/rds/ib_rdma.c +++ b/net/rds/ib_rdma.c | |||
@@ -693,7 +693,7 @@ out_nolock: | |||
693 | 693 | ||
694 | struct workqueue_struct *rds_ib_fmr_wq; | 694 | struct workqueue_struct *rds_ib_fmr_wq; |
695 | 695 | ||
696 | int __init rds_ib_fmr_init(void) | 696 | int rds_ib_fmr_init(void) |
697 | { | 697 | { |
698 | rds_ib_fmr_wq = create_workqueue("rds_fmr_flushd"); | 698 | rds_ib_fmr_wq = create_workqueue("rds_fmr_flushd"); |
699 | if (!rds_ib_fmr_wq) | 699 | if (!rds_ib_fmr_wq) |
@@ -706,7 +706,7 @@ int __init rds_ib_fmr_init(void) | |||
706 | * had their pools freed. As each pool is freed its work struct is waited on, | 706 | * had their pools freed. As each pool is freed its work struct is waited on, |
707 | * so the pool flushing work queue should be idle by the time we get here. | 707 | * so the pool flushing work queue should be idle by the time we get here. |
708 | */ | 708 | */ |
709 | void __exit rds_ib_fmr_exit(void) | 709 | void rds_ib_fmr_exit(void) |
710 | { | 710 | { |
711 | destroy_workqueue(rds_ib_fmr_wq); | 711 | destroy_workqueue(rds_ib_fmr_wq); |
712 | } | 712 | } |
diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 37dab2898ad0..f25c4837d2f6 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c | |||
@@ -1040,7 +1040,7 @@ int rds_ib_recv(struct rds_connection *conn) | |||
1040 | return ret; | 1040 | return ret; |
1041 | } | 1041 | } |
1042 | 1042 | ||
1043 | int __init rds_ib_recv_init(void) | 1043 | int rds_ib_recv_init(void) |
1044 | { | 1044 | { |
1045 | struct sysinfo si; | 1045 | struct sysinfo si; |
1046 | int ret = -ENOMEM; | 1046 | int ret = -ENOMEM; |
diff --git a/net/rds/ib_sysctl.c b/net/rds/ib_sysctl.c index b556c5c2a902..fc3da37220fd 100644 --- a/net/rds/ib_sysctl.c +++ b/net/rds/ib_sysctl.c | |||
@@ -119,7 +119,7 @@ void rds_ib_sysctl_exit(void) | |||
119 | unregister_sysctl_table(rds_ib_sysctl_hdr); | 119 | unregister_sysctl_table(rds_ib_sysctl_hdr); |
120 | } | 120 | } |
121 | 121 | ||
122 | int __init rds_ib_sysctl_init(void) | 122 | int rds_ib_sysctl_init(void) |
123 | { | 123 | { |
124 | rds_ib_sysctl_hdr = register_sysctl_paths(rds_ib_sysctl_path, rds_ib_sysctl_table); | 124 | rds_ib_sysctl_hdr = register_sysctl_paths(rds_ib_sysctl_path, rds_ib_sysctl_table); |
125 | if (!rds_ib_sysctl_hdr) | 125 | if (!rds_ib_sysctl_hdr) |
diff --git a/net/rds/iw.c b/net/rds/iw.c index 467790da1316..56808cac0fc7 100644 --- a/net/rds/iw.c +++ b/net/rds/iw.c | |||
@@ -287,7 +287,7 @@ struct rds_transport rds_iw_transport = { | |||
287 | .t_prefer_loopback = 1, | 287 | .t_prefer_loopback = 1, |
288 | }; | 288 | }; |
289 | 289 | ||
290 | int __init rds_iw_init(void) | 290 | int rds_iw_init(void) |
291 | { | 291 | { |
292 | int ret; | 292 | int ret; |
293 | 293 | ||
diff --git a/net/rds/iw.h b/net/rds/iw.h index f112105faced..543e665fafe3 100644 --- a/net/rds/iw.h +++ b/net/rds/iw.h | |||
@@ -284,7 +284,7 @@ void rds_iw_conn_free(void *arg); | |||
284 | int rds_iw_conn_connect(struct rds_connection *conn); | 284 | int rds_iw_conn_connect(struct rds_connection *conn); |
285 | void rds_iw_conn_shutdown(struct rds_connection *conn); | 285 | void rds_iw_conn_shutdown(struct rds_connection *conn); |
286 | void rds_iw_state_change(struct sock *sk); | 286 | void rds_iw_state_change(struct sock *sk); |
287 | int __init rds_iw_listen_init(void); | 287 | int rds_iw_listen_init(void); |
288 | void rds_iw_listen_stop(void); | 288 | void rds_iw_listen_stop(void); |
289 | void __rds_iw_conn_error(struct rds_connection *conn, const char *, ...); | 289 | void __rds_iw_conn_error(struct rds_connection *conn, const char *, ...); |
290 | int rds_iw_cm_handle_connect(struct rdma_cm_id *cm_id, | 290 | int rds_iw_cm_handle_connect(struct rdma_cm_id *cm_id, |
@@ -321,7 +321,7 @@ void rds_iw_flush_mrs(void); | |||
321 | void rds_iw_remove_cm_id(struct rds_iw_device *rds_iwdev, struct rdma_cm_id *cm_id); | 321 | void rds_iw_remove_cm_id(struct rds_iw_device *rds_iwdev, struct rdma_cm_id *cm_id); |
322 | 322 | ||
323 | /* ib_recv.c */ | 323 | /* ib_recv.c */ |
324 | int __init rds_iw_recv_init(void); | 324 | int rds_iw_recv_init(void); |
325 | void rds_iw_recv_exit(void); | 325 | void rds_iw_recv_exit(void); |
326 | int rds_iw_recv(struct rds_connection *conn); | 326 | int rds_iw_recv(struct rds_connection *conn); |
327 | int rds_iw_recv_refill(struct rds_connection *conn, gfp_t kptr_gfp, | 327 | int rds_iw_recv_refill(struct rds_connection *conn, gfp_t kptr_gfp, |
@@ -370,7 +370,7 @@ unsigned int rds_iw_stats_info_copy(struct rds_info_iterator *iter, | |||
370 | unsigned int avail); | 370 | unsigned int avail); |
371 | 371 | ||
372 | /* ib_sysctl.c */ | 372 | /* ib_sysctl.c */ |
373 | int __init rds_iw_sysctl_init(void); | 373 | int rds_iw_sysctl_init(void); |
374 | void rds_iw_sysctl_exit(void); | 374 | void rds_iw_sysctl_exit(void); |
375 | extern unsigned long rds_iw_sysctl_max_send_wr; | 375 | extern unsigned long rds_iw_sysctl_max_send_wr; |
376 | extern unsigned long rds_iw_sysctl_max_recv_wr; | 376 | extern unsigned long rds_iw_sysctl_max_recv_wr; |
diff --git a/net/rds/iw_recv.c b/net/rds/iw_recv.c index 7e929f701a0c..5e57347f49ff 100644 --- a/net/rds/iw_recv.c +++ b/net/rds/iw_recv.c | |||
@@ -887,7 +887,7 @@ int rds_iw_recv(struct rds_connection *conn) | |||
887 | return ret; | 887 | return ret; |
888 | } | 888 | } |
889 | 889 | ||
890 | int __init rds_iw_recv_init(void) | 890 | int rds_iw_recv_init(void) |
891 | { | 891 | { |
892 | struct sysinfo si; | 892 | struct sysinfo si; |
893 | int ret = -ENOMEM; | 893 | int ret = -ENOMEM; |
diff --git a/net/rds/iw_sysctl.c b/net/rds/iw_sysctl.c index 3cb0587d6f50..23e3a9a26aaf 100644 --- a/net/rds/iw_sysctl.c +++ b/net/rds/iw_sysctl.c | |||
@@ -122,7 +122,7 @@ void rds_iw_sysctl_exit(void) | |||
122 | unregister_sysctl_table(rds_iw_sysctl_hdr); | 122 | unregister_sysctl_table(rds_iw_sysctl_hdr); |
123 | } | 123 | } |
124 | 124 | ||
125 | int __init rds_iw_sysctl_init(void) | 125 | int rds_iw_sysctl_init(void) |
126 | { | 126 | { |
127 | rds_iw_sysctl_hdr = register_sysctl_paths(rds_iw_sysctl_path, rds_iw_sysctl_table); | 127 | rds_iw_sysctl_hdr = register_sysctl_paths(rds_iw_sysctl_path, rds_iw_sysctl_table); |
128 | if (!rds_iw_sysctl_hdr) | 128 | if (!rds_iw_sysctl_hdr) |
diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c index e599ba2f950d..550d34837fe7 100644 --- a/net/rds/rdma_transport.c +++ b/net/rds/rdma_transport.c | |||
@@ -122,7 +122,7 @@ out: | |||
122 | return ret; | 122 | return ret; |
123 | } | 123 | } |
124 | 124 | ||
125 | static int __init rds_rdma_listen_init(void) | 125 | static int rds_rdma_listen_init(void) |
126 | { | 126 | { |
127 | struct sockaddr_in sin; | 127 | struct sockaddr_in sin; |
128 | struct rdma_cm_id *cm_id; | 128 | struct rdma_cm_id *cm_id; |
@@ -177,7 +177,7 @@ static void rds_rdma_listen_stop(void) | |||
177 | } | 177 | } |
178 | } | 178 | } |
179 | 179 | ||
180 | int __init rds_rdma_init(void) | 180 | int rds_rdma_init(void) |
181 | { | 181 | { |
182 | int ret; | 182 | int ret; |
183 | 183 | ||
diff --git a/net/rds/rds.h b/net/rds/rds.h index 4510344ce8ca..8a8a4822d02a 100644 --- a/net/rds/rds.h +++ b/net/rds/rds.h | |||
@@ -606,7 +606,7 @@ void rds_cong_exit(void); | |||
606 | struct rds_message *rds_cong_update_alloc(struct rds_connection *conn); | 606 | struct rds_message *rds_cong_update_alloc(struct rds_connection *conn); |
607 | 607 | ||
608 | /* conn.c */ | 608 | /* conn.c */ |
609 | int __init rds_conn_init(void); | 609 | int rds_conn_init(void); |
610 | void rds_conn_exit(void); | 610 | void rds_conn_exit(void); |
611 | struct rds_connection *rds_conn_create(__be32 laddr, __be32 faddr, | 611 | struct rds_connection *rds_conn_create(__be32 laddr, __be32 faddr, |
612 | struct rds_transport *trans, gfp_t gfp); | 612 | struct rds_transport *trans, gfp_t gfp); |
@@ -769,14 +769,14 @@ DECLARE_PER_CPU_SHARED_ALIGNED(struct rds_statistics, rds_stats); | |||
769 | put_cpu(); \ | 769 | put_cpu(); \ |
770 | } while (0) | 770 | } while (0) |
771 | #define rds_stats_add(member, count) rds_stats_add_which(rds_stats, member, count) | 771 | #define rds_stats_add(member, count) rds_stats_add_which(rds_stats, member, count) |
772 | int __init rds_stats_init(void); | 772 | int rds_stats_init(void); |
773 | void rds_stats_exit(void); | 773 | void rds_stats_exit(void); |
774 | void rds_stats_info_copy(struct rds_info_iterator *iter, | 774 | void rds_stats_info_copy(struct rds_info_iterator *iter, |
775 | uint64_t *values, const char *const *names, | 775 | uint64_t *values, const char *const *names, |
776 | size_t nr); | 776 | size_t nr); |
777 | 777 | ||
778 | /* sysctl.c */ | 778 | /* sysctl.c */ |
779 | int __init rds_sysctl_init(void); | 779 | int rds_sysctl_init(void); |
780 | void rds_sysctl_exit(void); | 780 | void rds_sysctl_exit(void); |
781 | extern unsigned long rds_sysctl_sndbuf_min; | 781 | extern unsigned long rds_sysctl_sndbuf_min; |
782 | extern unsigned long rds_sysctl_sndbuf_default; | 782 | extern unsigned long rds_sysctl_sndbuf_default; |
@@ -790,7 +790,7 @@ extern unsigned long rds_sysctl_trace_flags; | |||
790 | extern unsigned int rds_sysctl_trace_level; | 790 | extern unsigned int rds_sysctl_trace_level; |
791 | 791 | ||
792 | /* threads.c */ | 792 | /* threads.c */ |
793 | int __init rds_threads_init(void); | 793 | int rds_threads_init(void); |
794 | void rds_threads_exit(void); | 794 | void rds_threads_exit(void); |
795 | extern struct workqueue_struct *rds_wq; | 795 | extern struct workqueue_struct *rds_wq; |
796 | void rds_queue_reconnect(struct rds_connection *conn); | 796 | void rds_queue_reconnect(struct rds_connection *conn); |
@@ -806,7 +806,7 @@ void rds_trans_unregister(struct rds_transport *trans); | |||
806 | struct rds_transport *rds_trans_get_preferred(__be32 addr); | 806 | struct rds_transport *rds_trans_get_preferred(__be32 addr); |
807 | unsigned int rds_trans_stats_info_copy(struct rds_info_iterator *iter, | 807 | unsigned int rds_trans_stats_info_copy(struct rds_info_iterator *iter, |
808 | unsigned int avail); | 808 | unsigned int avail); |
809 | int __init rds_trans_init(void); | 809 | int rds_trans_init(void); |
810 | void rds_trans_exit(void); | 810 | void rds_trans_exit(void); |
811 | 811 | ||
812 | #endif | 812 | #endif |
diff --git a/net/rds/stats.c b/net/rds/stats.c index 344929a663e5..10c759ccac0c 100644 --- a/net/rds/stats.c +++ b/net/rds/stats.c | |||
@@ -143,7 +143,7 @@ void rds_stats_exit(void) | |||
143 | rds_info_deregister_func(RDS_INFO_COUNTERS, rds_stats_info); | 143 | rds_info_deregister_func(RDS_INFO_COUNTERS, rds_stats_info); |
144 | } | 144 | } |
145 | 145 | ||
146 | int __init rds_stats_init(void) | 146 | int rds_stats_init(void) |
147 | { | 147 | { |
148 | rds_info_register_func(RDS_INFO_COUNTERS, rds_stats_info); | 148 | rds_info_register_func(RDS_INFO_COUNTERS, rds_stats_info); |
149 | return 0; | 149 | return 0; |
diff --git a/net/rds/sysctl.c b/net/rds/sysctl.c index 5a6dd81de188..25ad0c77a26c 100644 --- a/net/rds/sysctl.c +++ b/net/rds/sysctl.c | |||
@@ -105,7 +105,7 @@ void rds_sysctl_exit(void) | |||
105 | unregister_sysctl_table(rds_sysctl_reg_table); | 105 | unregister_sysctl_table(rds_sysctl_reg_table); |
106 | } | 106 | } |
107 | 107 | ||
108 | int __init rds_sysctl_init(void) | 108 | int rds_sysctl_init(void) |
109 | { | 109 | { |
110 | rds_sysctl_reconnect_min = msecs_to_jiffies(1); | 110 | rds_sysctl_reconnect_min = msecs_to_jiffies(1); |
111 | rds_sysctl_reconnect_min_jiffies = rds_sysctl_reconnect_min; | 111 | rds_sysctl_reconnect_min_jiffies = rds_sysctl_reconnect_min; |
diff --git a/net/rds/tcp.c b/net/rds/tcp.c index 3262992f5f2b..eeb08e6ab96b 100644 --- a/net/rds/tcp.c +++ b/net/rds/tcp.c | |||
@@ -274,7 +274,7 @@ struct rds_transport rds_tcp_transport = { | |||
274 | .t_prefer_loopback = 1, | 274 | .t_prefer_loopback = 1, |
275 | }; | 275 | }; |
276 | 276 | ||
277 | int __init rds_tcp_init(void) | 277 | int rds_tcp_init(void) |
278 | { | 278 | { |
279 | int ret; | 279 | int ret; |
280 | 280 | ||
diff --git a/net/rds/tcp.h b/net/rds/tcp.h index 16b166379ea9..f5e6f7bebb50 100644 --- a/net/rds/tcp.h +++ b/net/rds/tcp.h | |||
@@ -43,7 +43,7 @@ struct rds_tcp_statistics { | |||
43 | }; | 43 | }; |
44 | 44 | ||
45 | /* tcp.c */ | 45 | /* tcp.c */ |
46 | int __init rds_tcp_init(void); | 46 | int rds_tcp_init(void); |
47 | void rds_tcp_exit(void); | 47 | void rds_tcp_exit(void); |
48 | void rds_tcp_tune(struct socket *sock); | 48 | void rds_tcp_tune(struct socket *sock); |
49 | void rds_tcp_nonagle(struct socket *sock); | 49 | void rds_tcp_nonagle(struct socket *sock); |
@@ -61,12 +61,12 @@ void rds_tcp_conn_shutdown(struct rds_connection *conn); | |||
61 | void rds_tcp_state_change(struct sock *sk); | 61 | void rds_tcp_state_change(struct sock *sk); |
62 | 62 | ||
63 | /* tcp_listen.c */ | 63 | /* tcp_listen.c */ |
64 | int __init rds_tcp_listen_init(void); | 64 | int rds_tcp_listen_init(void); |
65 | void rds_tcp_listen_stop(void); | 65 | void rds_tcp_listen_stop(void); |
66 | void rds_tcp_listen_data_ready(struct sock *sk, int bytes); | 66 | void rds_tcp_listen_data_ready(struct sock *sk, int bytes); |
67 | 67 | ||
68 | /* tcp_recv.c */ | 68 | /* tcp_recv.c */ |
69 | int __init rds_tcp_recv_init(void); | 69 | int rds_tcp_recv_init(void); |
70 | void rds_tcp_recv_exit(void); | 70 | void rds_tcp_recv_exit(void); |
71 | void rds_tcp_data_ready(struct sock *sk, int bytes); | 71 | void rds_tcp_data_ready(struct sock *sk, int bytes); |
72 | int rds_tcp_recv(struct rds_connection *conn); | 72 | int rds_tcp_recv(struct rds_connection *conn); |
diff --git a/net/rds/tcp_listen.c b/net/rds/tcp_listen.c index 50b649eb6933..ae27869dfc21 100644 --- a/net/rds/tcp_listen.c +++ b/net/rds/tcp_listen.c | |||
@@ -135,7 +135,7 @@ out: | |||
135 | ready(sk, bytes); | 135 | ready(sk, bytes); |
136 | } | 136 | } |
137 | 137 | ||
138 | int __init rds_tcp_listen_init(void) | 138 | int rds_tcp_listen_init(void) |
139 | { | 139 | { |
140 | struct sockaddr_in sin; | 140 | struct sockaddr_in sin; |
141 | struct socket *sock = NULL; | 141 | struct socket *sock = NULL; |
diff --git a/net/rds/tcp_recv.c b/net/rds/tcp_recv.c index 49c966010788..7017f3af80b6 100644 --- a/net/rds/tcp_recv.c +++ b/net/rds/tcp_recv.c | |||
@@ -342,7 +342,7 @@ out: | |||
342 | ready(sk, bytes); | 342 | ready(sk, bytes); |
343 | } | 343 | } |
344 | 344 | ||
345 | int __init rds_tcp_recv_init(void) | 345 | int rds_tcp_recv_init(void) |
346 | { | 346 | { |
347 | rds_tcp_incoming_slab = kmem_cache_create("rds_tcp_incoming", | 347 | rds_tcp_incoming_slab = kmem_cache_create("rds_tcp_incoming", |
348 | sizeof(struct rds_tcp_incoming), | 348 | sizeof(struct rds_tcp_incoming), |
diff --git a/net/rds/threads.c b/net/rds/threads.c index c08c220efac5..0fd90f8c5f59 100644 --- a/net/rds/threads.c +++ b/net/rds/threads.c | |||
@@ -212,7 +212,7 @@ void rds_threads_exit(void) | |||
212 | destroy_workqueue(rds_wq); | 212 | destroy_workqueue(rds_wq); |
213 | } | 213 | } |
214 | 214 | ||
215 | int __init rds_threads_init(void) | 215 | int rds_threads_init(void) |
216 | { | 216 | { |
217 | rds_wq = create_singlethread_workqueue("krdsd"); | 217 | rds_wq = create_singlethread_workqueue("krdsd"); |
218 | if (!rds_wq) | 218 | if (!rds_wq) |