aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds
diff options
context:
space:
mode:
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/af_rds.c4
-rw-r--r--net/rds/connection.c2
-rw-r--r--net/rds/ib.c2
-rw-r--r--net/rds/ib.h10
-rw-r--r--net/rds/ib_rdma.c4
-rw-r--r--net/rds/ib_recv.c2
-rw-r--r--net/rds/ib_sysctl.c2
-rw-r--r--net/rds/iw.c2
-rw-r--r--net/rds/iw.h6
-rw-r--r--net/rds/iw_recv.c2
-rw-r--r--net/rds/iw_sysctl.c2
-rw-r--r--net/rds/rdma_transport.c4
-rw-r--r--net/rds/rds.h10
-rw-r--r--net/rds/stats.c2
-rw-r--r--net/rds/sysctl.c2
-rw-r--r--net/rds/tcp.c2
-rw-r--r--net/rds/tcp.h6
-rw-r--r--net/rds/tcp_listen.c2
-rw-r--r--net/rds/tcp_recv.c2
-rw-r--r--net/rds/threads.c2
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
524static void __exit rds_exit(void) 524static 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}
537module_exit(rds_exit); 537module_exit(rds_exit);
538 538
539static int __init rds_init(void) 539static 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
491int __init rds_conn_init(void) 491int 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
384int __init rds_ib_init(void) 384int 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);
282int rds_ib_conn_connect(struct rds_connection *conn); 282int rds_ib_conn_connect(struct rds_connection *conn);
283void rds_ib_conn_shutdown(struct rds_connection *conn); 283void rds_ib_conn_shutdown(struct rds_connection *conn);
284void rds_ib_state_change(struct sock *sk); 284void rds_ib_state_change(struct sock *sk);
285int __init rds_ib_listen_init(void); 285int rds_ib_listen_init(void);
286void rds_ib_listen_stop(void); 286void rds_ib_listen_stop(void);
287void __rds_ib_conn_error(struct rds_connection *conn, const char *, ...); 287void __rds_ib_conn_error(struct rds_connection *conn, const char *, ...);
288int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id, 288int 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,
308void rds_ib_sync_mr(void *trans_private, int dir); 308void rds_ib_sync_mr(void *trans_private, int dir);
309void rds_ib_free_mr(void *trans_private, int invalidate); 309void rds_ib_free_mr(void *trans_private, int invalidate);
310void rds_ib_flush_mrs(void); 310void rds_ib_flush_mrs(void);
311int __init rds_ib_fmr_init(void); 311int rds_ib_fmr_init(void);
312void __exit rds_ib_fmr_exit(void); 312void rds_ib_fmr_exit(void);
313 313
314/* ib_recv.c */ 314/* ib_recv.c */
315int __init rds_ib_recv_init(void); 315int rds_ib_recv_init(void);
316void rds_ib_recv_exit(void); 316void rds_ib_recv_exit(void);
317int rds_ib_recv(struct rds_connection *conn); 317int rds_ib_recv(struct rds_connection *conn);
318int rds_ib_recv_alloc_caches(struct rds_ib_connection *ic); 318int 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 */
366int __init rds_ib_sysctl_init(void); 366int rds_ib_sysctl_init(void);
367void rds_ib_sysctl_exit(void); 367void rds_ib_sysctl_exit(void);
368extern unsigned long rds_ib_sysctl_max_send_wr; 368extern unsigned long rds_ib_sysctl_max_send_wr;
369extern unsigned long rds_ib_sysctl_max_recv_wr; 369extern 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
694struct workqueue_struct *rds_ib_fmr_wq; 694struct workqueue_struct *rds_ib_fmr_wq;
695 695
696int __init rds_ib_fmr_init(void) 696int 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 */
709void __exit rds_ib_fmr_exit(void) 709void 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
1043int __init rds_ib_recv_init(void) 1043int 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
122int __init rds_ib_sysctl_init(void) 122int 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
290int __init rds_iw_init(void) 290int 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);
284int rds_iw_conn_connect(struct rds_connection *conn); 284int rds_iw_conn_connect(struct rds_connection *conn);
285void rds_iw_conn_shutdown(struct rds_connection *conn); 285void rds_iw_conn_shutdown(struct rds_connection *conn);
286void rds_iw_state_change(struct sock *sk); 286void rds_iw_state_change(struct sock *sk);
287int __init rds_iw_listen_init(void); 287int rds_iw_listen_init(void);
288void rds_iw_listen_stop(void); 288void rds_iw_listen_stop(void);
289void __rds_iw_conn_error(struct rds_connection *conn, const char *, ...); 289void __rds_iw_conn_error(struct rds_connection *conn, const char *, ...);
290int rds_iw_cm_handle_connect(struct rdma_cm_id *cm_id, 290int rds_iw_cm_handle_connect(struct rdma_cm_id *cm_id,
@@ -321,7 +321,7 @@ void rds_iw_flush_mrs(void);
321void rds_iw_remove_cm_id(struct rds_iw_device *rds_iwdev, struct rdma_cm_id *cm_id); 321void 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 */
324int __init rds_iw_recv_init(void); 324int rds_iw_recv_init(void);
325void rds_iw_recv_exit(void); 325void rds_iw_recv_exit(void);
326int rds_iw_recv(struct rds_connection *conn); 326int rds_iw_recv(struct rds_connection *conn);
327int rds_iw_recv_refill(struct rds_connection *conn, gfp_t kptr_gfp, 327int 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 */
373int __init rds_iw_sysctl_init(void); 373int rds_iw_sysctl_init(void);
374void rds_iw_sysctl_exit(void); 374void rds_iw_sysctl_exit(void);
375extern unsigned long rds_iw_sysctl_max_send_wr; 375extern unsigned long rds_iw_sysctl_max_send_wr;
376extern unsigned long rds_iw_sysctl_max_recv_wr; 376extern 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
890int __init rds_iw_recv_init(void) 890int 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
125int __init rds_iw_sysctl_init(void) 125int 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
125static int __init rds_rdma_listen_init(void) 125static 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
180int __init rds_rdma_init(void) 180int 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);
606struct rds_message *rds_cong_update_alloc(struct rds_connection *conn); 606struct rds_message *rds_cong_update_alloc(struct rds_connection *conn);
607 607
608/* conn.c */ 608/* conn.c */
609int __init rds_conn_init(void); 609int rds_conn_init(void);
610void rds_conn_exit(void); 610void rds_conn_exit(void);
611struct rds_connection *rds_conn_create(__be32 laddr, __be32 faddr, 611struct 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)
772int __init rds_stats_init(void); 772int rds_stats_init(void);
773void rds_stats_exit(void); 773void rds_stats_exit(void);
774void rds_stats_info_copy(struct rds_info_iterator *iter, 774void 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 */
779int __init rds_sysctl_init(void); 779int rds_sysctl_init(void);
780void rds_sysctl_exit(void); 780void rds_sysctl_exit(void);
781extern unsigned long rds_sysctl_sndbuf_min; 781extern unsigned long rds_sysctl_sndbuf_min;
782extern unsigned long rds_sysctl_sndbuf_default; 782extern unsigned long rds_sysctl_sndbuf_default;
@@ -790,7 +790,7 @@ extern unsigned long rds_sysctl_trace_flags;
790extern unsigned int rds_sysctl_trace_level; 790extern unsigned int rds_sysctl_trace_level;
791 791
792/* threads.c */ 792/* threads.c */
793int __init rds_threads_init(void); 793int rds_threads_init(void);
794void rds_threads_exit(void); 794void rds_threads_exit(void);
795extern struct workqueue_struct *rds_wq; 795extern struct workqueue_struct *rds_wq;
796void rds_queue_reconnect(struct rds_connection *conn); 796void rds_queue_reconnect(struct rds_connection *conn);
@@ -806,7 +806,7 @@ void rds_trans_unregister(struct rds_transport *trans);
806struct rds_transport *rds_trans_get_preferred(__be32 addr); 806struct rds_transport *rds_trans_get_preferred(__be32 addr);
807unsigned int rds_trans_stats_info_copy(struct rds_info_iterator *iter, 807unsigned int rds_trans_stats_info_copy(struct rds_info_iterator *iter,
808 unsigned int avail); 808 unsigned int avail);
809int __init rds_trans_init(void); 809int rds_trans_init(void);
810void rds_trans_exit(void); 810void 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
146int __init rds_stats_init(void) 146int 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
108int __init rds_sysctl_init(void) 108int 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
277int __init rds_tcp_init(void) 277int 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 */
46int __init rds_tcp_init(void); 46int rds_tcp_init(void);
47void rds_tcp_exit(void); 47void rds_tcp_exit(void);
48void rds_tcp_tune(struct socket *sock); 48void rds_tcp_tune(struct socket *sock);
49void rds_tcp_nonagle(struct socket *sock); 49void rds_tcp_nonagle(struct socket *sock);
@@ -61,12 +61,12 @@ void rds_tcp_conn_shutdown(struct rds_connection *conn);
61void rds_tcp_state_change(struct sock *sk); 61void rds_tcp_state_change(struct sock *sk);
62 62
63/* tcp_listen.c */ 63/* tcp_listen.c */
64int __init rds_tcp_listen_init(void); 64int rds_tcp_listen_init(void);
65void rds_tcp_listen_stop(void); 65void rds_tcp_listen_stop(void);
66void rds_tcp_listen_data_ready(struct sock *sk, int bytes); 66void rds_tcp_listen_data_ready(struct sock *sk, int bytes);
67 67
68/* tcp_recv.c */ 68/* tcp_recv.c */
69int __init rds_tcp_recv_init(void); 69int rds_tcp_recv_init(void);
70void rds_tcp_recv_exit(void); 70void rds_tcp_recv_exit(void);
71void rds_tcp_data_ready(struct sock *sk, int bytes); 71void rds_tcp_data_ready(struct sock *sk, int bytes);
72int rds_tcp_recv(struct rds_connection *conn); 72int 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
138int __init rds_tcp_listen_init(void) 138int 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
345int __init rds_tcp_recv_init(void) 345int 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
215int __init rds_threads_init(void) 215int 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)