diff options
author | James Simmons <jsimmons@infradead.org> | 2016-03-11 20:29:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-12 01:24:47 -0500 |
commit | 00b5fdb7453c1843e299733530a2301916df271a (patch) | |
tree | 97217c655685c184e2d486a184e36820d9347465 | |
parent | d47e33e8c8377fe1832a98fcc19cf569d52a463a (diff) |
staging: lustre: remove extra spacing of variable declartions for lnet selftest
Remove any extra spacing such as "int rc" to "int rc" to match
the proper kernel style
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/brw_test.c | 28 | ||||
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/conctl.c | 36 | ||||
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/conrpc.c | 40 | ||||
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/console.c | 30 | ||||
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/ping_test.c | 2 | ||||
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/rpc.c | 8 |
6 files changed, 72 insertions, 72 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/brw_test.c b/drivers/staging/lustre/lnet/selftest/brw_test.c index 18c7422d96e6..6b1f983a599f 100644 --- a/drivers/staging/lustre/lnet/selftest/brw_test.c +++ b/drivers/staging/lustre/lnet/selftest/brw_test.c | |||
@@ -51,8 +51,8 @@ MODULE_PARM_DESC(brw_inject_errors, "# data errors to inject randomly, zero by d | |||
51 | static void | 51 | static void |
52 | brw_client_fini(sfw_test_instance_t *tsi) | 52 | brw_client_fini(sfw_test_instance_t *tsi) |
53 | { | 53 | { |
54 | srpc_bulk_t *bulk; | 54 | srpc_bulk_t *bulk; |
55 | sfw_test_unit_t *tsu; | 55 | sfw_test_unit_t *tsu; |
56 | 56 | ||
57 | LASSERT(tsi->tsi_is_client); | 57 | LASSERT(tsi->tsi_is_client); |
58 | 58 | ||
@@ -69,19 +69,19 @@ brw_client_fini(sfw_test_instance_t *tsi) | |||
69 | static int | 69 | static int |
70 | brw_client_init(sfw_test_instance_t *tsi) | 70 | brw_client_init(sfw_test_instance_t *tsi) |
71 | { | 71 | { |
72 | sfw_session_t *sn = tsi->tsi_batch->bat_session; | 72 | sfw_session_t *sn = tsi->tsi_batch->bat_session; |
73 | int flags; | 73 | int flags; |
74 | int npg; | 74 | int npg; |
75 | int len; | 75 | int len; |
76 | int opc; | 76 | int opc; |
77 | srpc_bulk_t *bulk; | 77 | srpc_bulk_t *bulk; |
78 | sfw_test_unit_t *tsu; | 78 | sfw_test_unit_t *tsu; |
79 | 79 | ||
80 | LASSERT(sn); | 80 | LASSERT(sn); |
81 | LASSERT(tsi->tsi_is_client); | 81 | LASSERT(tsi->tsi_is_client); |
82 | 82 | ||
83 | if (!(sn->sn_features & LST_FEAT_BULK_LEN)) { | 83 | if (!(sn->sn_features & LST_FEAT_BULK_LEN)) { |
84 | test_bulk_req_t *breq = &tsi->tsi_u.bulk_v0; | 84 | test_bulk_req_t *breq = &tsi->tsi_u.bulk_v0; |
85 | 85 | ||
86 | opc = breq->blk_opc; | 86 | opc = breq->blk_opc; |
87 | flags = breq->blk_flags; | 87 | flags = breq->blk_flags; |
@@ -155,7 +155,7 @@ static void | |||
155 | brw_fill_page(struct page *pg, int pattern, __u64 magic) | 155 | brw_fill_page(struct page *pg, int pattern, __u64 magic) |
156 | { | 156 | { |
157 | char *addr = page_address(pg); | 157 | char *addr = page_address(pg); |
158 | int i; | 158 | int i; |
159 | 159 | ||
160 | LASSERT(addr); | 160 | LASSERT(addr); |
161 | 161 | ||
@@ -184,9 +184,9 @@ brw_fill_page(struct page *pg, int pattern, __u64 magic) | |||
184 | static int | 184 | static int |
185 | brw_check_page(struct page *pg, int pattern, __u64 magic) | 185 | brw_check_page(struct page *pg, int pattern, __u64 magic) |
186 | { | 186 | { |
187 | char *addr = page_address(pg); | 187 | char *addr = page_address(pg); |
188 | __u64 data = 0; /* make compiler happy */ | 188 | __u64 data = 0; /* make compiler happy */ |
189 | int i; | 189 | int i; |
190 | 190 | ||
191 | LASSERT(addr); | 191 | LASSERT(addr); |
192 | 192 | ||
diff --git a/drivers/staging/lustre/lnet/selftest/conctl.c b/drivers/staging/lustre/lnet/selftest/conctl.c index 62cacb661da4..9793bc6a109a 100644 --- a/drivers/staging/lustre/lnet/selftest/conctl.c +++ b/drivers/staging/lustre/lnet/selftest/conctl.c | |||
@@ -115,9 +115,9 @@ lst_session_info_ioctl(lstio_session_info_args_t *args) | |||
115 | static int | 115 | static int |
116 | lst_debug_ioctl(lstio_debug_args_t *args) | 116 | lst_debug_ioctl(lstio_debug_args_t *args) |
117 | { | 117 | { |
118 | char *name = NULL; | 118 | char *name = NULL; |
119 | int client = 1; | 119 | int client = 1; |
120 | int rc; | 120 | int rc; |
121 | 121 | ||
122 | if (args->lstio_dbg_key != console_session.ses_key) | 122 | if (args->lstio_dbg_key != console_session.ses_key) |
123 | return -EACCES; | 123 | return -EACCES; |
@@ -229,8 +229,8 @@ lst_group_add_ioctl(lstio_group_add_args_t *args) | |||
229 | static int | 229 | static int |
230 | lst_group_del_ioctl(lstio_group_del_args_t *args) | 230 | lst_group_del_ioctl(lstio_group_del_args_t *args) |
231 | { | 231 | { |
232 | int rc; | 232 | int rc; |
233 | char *name; | 233 | char *name; |
234 | 234 | ||
235 | if (args->lstio_grp_key != console_session.ses_key) | 235 | if (args->lstio_grp_key != console_session.ses_key) |
236 | return -EACCES; | 236 | return -EACCES; |
@@ -262,8 +262,8 @@ lst_group_del_ioctl(lstio_group_del_args_t *args) | |||
262 | static int | 262 | static int |
263 | lst_group_update_ioctl(lstio_group_update_args_t *args) | 263 | lst_group_update_ioctl(lstio_group_update_args_t *args) |
264 | { | 264 | { |
265 | int rc; | 265 | int rc; |
266 | char *name; | 266 | char *name; |
267 | 267 | ||
268 | if (args->lstio_grp_key != console_session.ses_key) | 268 | if (args->lstio_grp_key != console_session.ses_key) |
269 | return -EACCES; | 269 | return -EACCES; |
@@ -547,8 +547,8 @@ lst_batch_stop_ioctl(lstio_batch_stop_args_t *args) | |||
547 | static int | 547 | static int |
548 | lst_batch_query_ioctl(lstio_batch_query_args_t *args) | 548 | lst_batch_query_ioctl(lstio_batch_query_args_t *args) |
549 | { | 549 | { |
550 | char *name; | 550 | char *name; |
551 | int rc; | 551 | int rc; |
552 | 552 | ||
553 | if (args->lstio_bat_key != console_session.ses_key) | 553 | if (args->lstio_bat_key != console_session.ses_key) |
554 | return -EACCES; | 554 | return -EACCES; |
@@ -714,12 +714,12 @@ lst_stat_query_ioctl(lstio_stat_args_t *args) | |||
714 | 714 | ||
715 | static int lst_test_add_ioctl(lstio_test_args_t *args) | 715 | static int lst_test_add_ioctl(lstio_test_args_t *args) |
716 | { | 716 | { |
717 | char *batch_name; | 717 | char *batch_name; |
718 | char *src_name = NULL; | 718 | char *src_name = NULL; |
719 | char *dst_name = NULL; | 719 | char *dst_name = NULL; |
720 | void *param = NULL; | 720 | void *param = NULL; |
721 | int ret = 0; | 721 | int ret = 0; |
722 | int rc = -ENOMEM; | 722 | int rc = -ENOMEM; |
723 | 723 | ||
724 | if (!args->lstio_tes_resultp || | 724 | if (!args->lstio_tes_resultp || |
725 | !args->lstio_tes_retp || | 725 | !args->lstio_tes_retp || |
@@ -807,10 +807,10 @@ out: | |||
807 | int | 807 | int |
808 | lstcon_ioctl_entry(unsigned int cmd, struct libcfs_ioctl_hdr *hdr) | 808 | lstcon_ioctl_entry(unsigned int cmd, struct libcfs_ioctl_hdr *hdr) |
809 | { | 809 | { |
810 | char *buf; | 810 | char *buf; |
811 | struct libcfs_ioctl_data *data; | 811 | struct libcfs_ioctl_data *data; |
812 | int opc; | 812 | int opc; |
813 | int rc; | 813 | int rc; |
814 | 814 | ||
815 | if (cmd != IOC_LIBCFS_LNETST) | 815 | if (cmd != IOC_LIBCFS_LNETST) |
816 | return -EINVAL; | 816 | return -EINVAL; |
diff --git a/drivers/staging/lustre/lnet/selftest/conrpc.c b/drivers/staging/lustre/lnet/selftest/conrpc.c index f2afa13d3739..77ea41b5f23a 100644 --- a/drivers/staging/lustre/lnet/selftest/conrpc.c +++ b/drivers/staging/lustre/lnet/selftest/conrpc.c | |||
@@ -288,8 +288,8 @@ void | |||
288 | lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error) | 288 | lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error) |
289 | { | 289 | { |
290 | srpc_client_rpc_t *rpc; | 290 | srpc_client_rpc_t *rpc; |
291 | lstcon_rpc_t *crpc; | 291 | lstcon_rpc_t *crpc; |
292 | lstcon_node_t *nd; | 292 | lstcon_node_t *nd; |
293 | 293 | ||
294 | list_for_each_entry(crpc, &trans->tas_rpcs_list, crp_link) { | 294 | list_for_each_entry(crpc, &trans->tas_rpcs_list, crp_link) { |
295 | rpc = crpc->crp_rpc; | 295 | rpc = crpc->crp_rpc; |
@@ -388,7 +388,7 @@ lstcon_rpc_trans_postwait(lstcon_rpc_trans_t *trans, int timeout) | |||
388 | static int | 388 | static int |
389 | lstcon_rpc_get_reply(lstcon_rpc_t *crpc, srpc_msg_t **msgpp) | 389 | lstcon_rpc_get_reply(lstcon_rpc_t *crpc, srpc_msg_t **msgpp) |
390 | { | 390 | { |
391 | lstcon_node_t *nd = crpc->crp_node; | 391 | lstcon_node_t *nd = crpc->crp_node; |
392 | srpc_client_rpc_t *rpc = crpc->crp_rpc; | 392 | srpc_client_rpc_t *rpc = crpc->crp_rpc; |
393 | srpc_generic_reply_t *rep; | 393 | srpc_generic_reply_t *rep; |
394 | 394 | ||
@@ -425,7 +425,7 @@ lstcon_rpc_get_reply(lstcon_rpc_t *crpc, srpc_msg_t **msgpp) | |||
425 | void | 425 | void |
426 | lstcon_rpc_trans_stat(lstcon_rpc_trans_t *trans, lstcon_trans_stat_t *stat) | 426 | lstcon_rpc_trans_stat(lstcon_rpc_trans_t *trans, lstcon_trans_stat_t *stat) |
427 | { | 427 | { |
428 | lstcon_rpc_t *crpc; | 428 | lstcon_rpc_t *crpc; |
429 | srpc_msg_t *rep; | 429 | srpc_msg_t *rep; |
430 | int error; | 430 | int error; |
431 | 431 | ||
@@ -654,9 +654,9 @@ int | |||
654 | lstcon_batrpc_prep(lstcon_node_t *nd, int transop, unsigned feats, | 654 | lstcon_batrpc_prep(lstcon_node_t *nd, int transop, unsigned feats, |
655 | lstcon_tsb_hdr_t *tsb, lstcon_rpc_t **crpc) | 655 | lstcon_tsb_hdr_t *tsb, lstcon_rpc_t **crpc) |
656 | { | 656 | { |
657 | lstcon_batch_t *batch; | 657 | lstcon_batch_t *batch; |
658 | srpc_batch_reqst_t *brq; | 658 | srpc_batch_reqst_t *brq; |
659 | int rc; | 659 | int rc; |
660 | 660 | ||
661 | rc = lstcon_rpc_prep(nd, SRPC_SERVICE_BATCH, feats, 0, 0, crpc); | 661 | rc = lstcon_rpc_prep(nd, SRPC_SERVICE_BATCH, feats, 0, 0, crpc); |
662 | if (rc) | 662 | if (rc) |
@@ -687,7 +687,7 @@ int | |||
687 | lstcon_statrpc_prep(lstcon_node_t *nd, unsigned feats, lstcon_rpc_t **crpc) | 687 | lstcon_statrpc_prep(lstcon_node_t *nd, unsigned feats, lstcon_rpc_t **crpc) |
688 | { | 688 | { |
689 | srpc_stat_reqst_t *srq; | 689 | srpc_stat_reqst_t *srq; |
690 | int rc; | 690 | int rc; |
691 | 691 | ||
692 | rc = lstcon_rpc_prep(nd, SRPC_SERVICE_QUERY_STAT, feats, 0, 0, crpc); | 692 | rc = lstcon_rpc_prep(nd, SRPC_SERVICE_QUERY_STAT, feats, 0, 0, crpc); |
693 | if (rc) | 693 | if (rc) |
@@ -811,14 +811,14 @@ int | |||
811 | lstcon_testrpc_prep(lstcon_node_t *nd, int transop, unsigned feats, | 811 | lstcon_testrpc_prep(lstcon_node_t *nd, int transop, unsigned feats, |
812 | lstcon_test_t *test, lstcon_rpc_t **crpc) | 812 | lstcon_test_t *test, lstcon_rpc_t **crpc) |
813 | { | 813 | { |
814 | lstcon_group_t *sgrp = test->tes_src_grp; | 814 | lstcon_group_t *sgrp = test->tes_src_grp; |
815 | lstcon_group_t *dgrp = test->tes_dst_grp; | 815 | lstcon_group_t *dgrp = test->tes_dst_grp; |
816 | srpc_test_reqst_t *trq; | 816 | srpc_test_reqst_t *trq; |
817 | srpc_bulk_t *bulk; | 817 | srpc_bulk_t *bulk; |
818 | int i; | 818 | int i; |
819 | int npg = 0; | 819 | int npg = 0; |
820 | int nob = 0; | 820 | int nob = 0; |
821 | int rc = 0; | 821 | int rc = 0; |
822 | 822 | ||
823 | if (transop == LST_TRANS_TSBCLIADD) { | 823 | if (transop == LST_TRANS_TSBCLIADD) { |
824 | npg = sfw_id_pages(test->tes_span); | 824 | npg = sfw_id_pages(test->tes_span); |
@@ -847,7 +847,7 @@ lstcon_testrpc_prep(lstcon_node_t *nd, int transop, unsigned feats, | |||
847 | bulk = &(*crpc)->crp_rpc->crpc_bulk; | 847 | bulk = &(*crpc)->crp_rpc->crpc_bulk; |
848 | 848 | ||
849 | for (i = 0; i < npg; i++) { | 849 | for (i = 0; i < npg; i++) { |
850 | int len; | 850 | int len; |
851 | 851 | ||
852 | LASSERT(nob > 0); | 852 | LASSERT(nob > 0); |
853 | 853 | ||
@@ -922,7 +922,7 @@ lstcon_sesnew_stat_reply(lstcon_rpc_trans_t *trans, | |||
922 | lstcon_node_t *nd, srpc_msg_t *reply) | 922 | lstcon_node_t *nd, srpc_msg_t *reply) |
923 | { | 923 | { |
924 | srpc_mksn_reply_t *mksn_rep = &reply->msg_body.mksn_reply; | 924 | srpc_mksn_reply_t *mksn_rep = &reply->msg_body.mksn_reply; |
925 | int status = mksn_rep->mksn_status; | 925 | int status = mksn_rep->mksn_status; |
926 | 926 | ||
927 | if (!status && | 927 | if (!status && |
928 | (reply->msg_ses_feats & ~LST_FEATS_MASK)) { | 928 | (reply->msg_ses_feats & ~LST_FEATS_MASK)) { |
@@ -968,12 +968,12 @@ void | |||
968 | lstcon_rpc_stat_reply(lstcon_rpc_trans_t *trans, srpc_msg_t *msg, | 968 | lstcon_rpc_stat_reply(lstcon_rpc_trans_t *trans, srpc_msg_t *msg, |
969 | lstcon_node_t *nd, lstcon_trans_stat_t *stat) | 969 | lstcon_node_t *nd, lstcon_trans_stat_t *stat) |
970 | { | 970 | { |
971 | srpc_rmsn_reply_t *rmsn_rep; | 971 | srpc_rmsn_reply_t *rmsn_rep; |
972 | srpc_debug_reply_t *dbg_rep; | 972 | srpc_debug_reply_t *dbg_rep; |
973 | srpc_batch_reply_t *bat_rep; | 973 | srpc_batch_reply_t *bat_rep; |
974 | srpc_test_reply_t *test_rep; | 974 | srpc_test_reply_t *test_rep; |
975 | srpc_stat_reply_t *stat_rep; | 975 | srpc_stat_reply_t *stat_rep; |
976 | int rc = 0; | 976 | int rc = 0; |
977 | 977 | ||
978 | switch (trans->tas_opc) { | 978 | switch (trans->tas_opc) { |
979 | case LST_TRANS_SESNEW: | 979 | case LST_TRANS_SESNEW: |
diff --git a/drivers/staging/lustre/lnet/selftest/console.c b/drivers/staging/lustre/lnet/selftest/console.c index b0c9acd3fe71..aac159b75d07 100644 --- a/drivers/staging/lustre/lnet/selftest/console.c +++ b/drivers/staging/lustre/lnet/selftest/console.c | |||
@@ -71,7 +71,7 @@ lstcon_node_get(lstcon_node_t *nd) | |||
71 | static int | 71 | static int |
72 | lstcon_node_find(lnet_process_id_t id, lstcon_node_t **ndpp, int create) | 72 | lstcon_node_find(lnet_process_id_t id, lstcon_node_t **ndpp, int create) |
73 | { | 73 | { |
74 | lstcon_ndlink_t *ndl; | 74 | lstcon_ndlink_t *ndl; |
75 | unsigned int idx = LNET_NIDADDR(id.nid) % LST_GLOBAL_HASHSIZE; | 75 | unsigned int idx = LNET_NIDADDR(id.nid) % LST_GLOBAL_HASHSIZE; |
76 | 76 | ||
77 | LASSERT(id.nid != LNET_NID_ANY); | 77 | LASSERT(id.nid != LNET_NID_ANY); |
@@ -403,7 +403,7 @@ lstcon_group_nodes_add(lstcon_group_t *grp, | |||
403 | unsigned *featp, struct list_head __user *result_up) | 403 | unsigned *featp, struct list_head __user *result_up) |
404 | { | 404 | { |
405 | lstcon_rpc_trans_t *trans; | 405 | lstcon_rpc_trans_t *trans; |
406 | lstcon_ndlink_t *ndl; | 406 | lstcon_ndlink_t *ndl; |
407 | lstcon_group_t *tmp; | 407 | lstcon_group_t *tmp; |
408 | lnet_process_id_t id; | 408 | lnet_process_id_t id; |
409 | int i; | 409 | int i; |
@@ -935,7 +935,7 @@ lstcon_batch_info(char *name, lstcon_test_batch_ent_t __user *ent_up, | |||
935 | struct list_head *srvlst; | 935 | struct list_head *srvlst; |
936 | lstcon_test_t *test = NULL; | 936 | lstcon_test_t *test = NULL; |
937 | lstcon_batch_t *bat; | 937 | lstcon_batch_t *bat; |
938 | lstcon_ndlink_t *ndl; | 938 | lstcon_ndlink_t *ndl; |
939 | int rc; | 939 | int rc; |
940 | 940 | ||
941 | rc = lstcon_batch_find(name, &bat); | 941 | rc = lstcon_batch_find(name, &bat); |
@@ -1258,7 +1258,7 @@ static int | |||
1258 | lstcon_verify_group(const char *name, lstcon_group_t **grp) | 1258 | lstcon_verify_group(const char *name, lstcon_group_t **grp) |
1259 | { | 1259 | { |
1260 | int rc; | 1260 | int rc; |
1261 | lstcon_ndlink_t *ndl; | 1261 | lstcon_ndlink_t *ndl; |
1262 | 1262 | ||
1263 | rc = lstcon_group_find(name, grp); | 1263 | rc = lstcon_group_find(name, grp); |
1264 | if (rc) { | 1264 | if (rc) { |
@@ -1283,11 +1283,11 @@ lstcon_test_add(char *batch_name, int type, int loop, | |||
1283 | void *param, int paramlen, int *retp, | 1283 | void *param, int paramlen, int *retp, |
1284 | struct list_head __user *result_up) | 1284 | struct list_head __user *result_up) |
1285 | { | 1285 | { |
1286 | lstcon_test_t *test = NULL; | 1286 | lstcon_test_t *test = NULL; |
1287 | int rc; | 1287 | int rc; |
1288 | lstcon_group_t *src_grp = NULL; | 1288 | lstcon_group_t *src_grp = NULL; |
1289 | lstcon_group_t *dst_grp = NULL; | 1289 | lstcon_group_t *dst_grp = NULL; |
1290 | lstcon_batch_t *batch = NULL; | 1290 | lstcon_batch_t *batch = NULL; |
1291 | 1291 | ||
1292 | /* | 1292 | /* |
1293 | * verify that a batch of the given name exists, and the groups | 1293 | * verify that a batch of the given name exists, and the groups |
@@ -1535,7 +1535,7 @@ int | |||
1535 | lstcon_nodes_stat(int count, lnet_process_id_t __user *ids_up, | 1535 | lstcon_nodes_stat(int count, lnet_process_id_t __user *ids_up, |
1536 | int timeout, struct list_head __user *result_up) | 1536 | int timeout, struct list_head __user *result_up) |
1537 | { | 1537 | { |
1538 | lstcon_ndlink_t *ndl; | 1538 | lstcon_ndlink_t *ndl; |
1539 | lstcon_group_t *tmp; | 1539 | lstcon_group_t *tmp; |
1540 | lnet_process_id_t id; | 1540 | lnet_process_id_t id; |
1541 | int i; | 1541 | int i; |
@@ -1581,7 +1581,7 @@ lstcon_debug_ndlist(struct list_head *ndlist, | |||
1581 | int timeout, struct list_head __user *result_up) | 1581 | int timeout, struct list_head __user *result_up) |
1582 | { | 1582 | { |
1583 | lstcon_rpc_trans_t *trans; | 1583 | lstcon_rpc_trans_t *trans; |
1584 | int rc; | 1584 | int rc; |
1585 | 1585 | ||
1586 | rc = lstcon_rpc_trans_ndlist(ndlist, translist, LST_TRANS_SESQRY, | 1586 | rc = lstcon_rpc_trans_ndlist(ndlist, translist, LST_TRANS_SESQRY, |
1587 | NULL, lstcon_sesrpc_condition, &trans); | 1587 | NULL, lstcon_sesrpc_condition, &trans); |
@@ -1905,13 +1905,13 @@ lstcon_session_feats_check(unsigned feats) | |||
1905 | static int | 1905 | static int |
1906 | lstcon_acceptor_handle(struct srpc_server_rpc *rpc) | 1906 | lstcon_acceptor_handle(struct srpc_server_rpc *rpc) |
1907 | { | 1907 | { |
1908 | srpc_msg_t *rep = &rpc->srpc_replymsg; | 1908 | srpc_msg_t *rep = &rpc->srpc_replymsg; |
1909 | srpc_msg_t *req = &rpc->srpc_reqstbuf->buf_msg; | 1909 | srpc_msg_t *req = &rpc->srpc_reqstbuf->buf_msg; |
1910 | srpc_join_reqst_t *jreq = &req->msg_body.join_reqst; | 1910 | srpc_join_reqst_t *jreq = &req->msg_body.join_reqst; |
1911 | srpc_join_reply_t *jrep = &rep->msg_body.join_reply; | 1911 | srpc_join_reply_t *jrep = &rep->msg_body.join_reply; |
1912 | lstcon_group_t *grp = NULL; | 1912 | lstcon_group_t *grp = NULL; |
1913 | lstcon_ndlink_t *ndl; | 1913 | lstcon_ndlink_t *ndl; |
1914 | int rc = 0; | 1914 | int rc = 0; |
1915 | 1915 | ||
1916 | sfw_unpack_message(req); | 1916 | sfw_unpack_message(req); |
1917 | 1917 | ||
diff --git a/drivers/staging/lustre/lnet/selftest/ping_test.c b/drivers/staging/lustre/lnet/selftest/ping_test.c index 33c758a60c7b..b5e69a72851f 100644 --- a/drivers/staging/lustre/lnet/selftest/ping_test.c +++ b/drivers/staging/lustre/lnet/selftest/ping_test.c | |||
@@ -170,7 +170,7 @@ ping_client_done_rpc(sfw_test_unit_t *tsu, srpc_client_rpc_t *rpc) | |||
170 | static int | 170 | static int |
171 | ping_server_handle(struct srpc_server_rpc *rpc) | 171 | ping_server_handle(struct srpc_server_rpc *rpc) |
172 | { | 172 | { |
173 | struct srpc_service *sv = rpc->srpc_scd->scd_svc; | 173 | struct srpc_service *sv = rpc->srpc_scd->scd_svc; |
174 | srpc_msg_t *reqstmsg = &rpc->srpc_reqstbuf->buf_msg; | 174 | srpc_msg_t *reqstmsg = &rpc->srpc_reqstbuf->buf_msg; |
175 | srpc_msg_t *replymsg = &rpc->srpc_replymsg; | 175 | srpc_msg_t *replymsg = &rpc->srpc_replymsg; |
176 | srpc_ping_reqst_t *req = &reqstmsg->msg_body.ping_reqst; | 176 | srpc_ping_reqst_t *req = &reqstmsg->msg_body.ping_reqst; |
diff --git a/drivers/staging/lustre/lnet/selftest/rpc.c b/drivers/staging/lustre/lnet/selftest/rpc.c index 08a0ad58abb4..1af978ff0c75 100644 --- a/drivers/staging/lustre/lnet/selftest/rpc.c +++ b/drivers/staging/lustre/lnet/selftest/rpc.c | |||
@@ -451,7 +451,7 @@ static int | |||
451 | srpc_post_passive_rqtbuf(int service, int local, void *buf, int len, | 451 | srpc_post_passive_rqtbuf(int service, int local, void *buf, int len, |
452 | lnet_handle_md_t *mdh, srpc_event_t *ev) | 452 | lnet_handle_md_t *mdh, srpc_event_t *ev) |
453 | { | 453 | { |
454 | lnet_process_id_t any = {0}; | 454 | lnet_process_id_t any = { 0 }; |
455 | 455 | ||
456 | any.nid = LNET_NID_ANY; | 456 | any.nid = LNET_NID_ANY; |
457 | any.pid = LNET_PID_ANY; | 457 | any.pid = LNET_PID_ANY; |
@@ -466,7 +466,7 @@ srpc_service_post_buffer(struct srpc_service_cd *scd, struct srpc_buffer *buf) | |||
466 | __must_hold(&scd->scd_lock) | 466 | __must_hold(&scd->scd_lock) |
467 | { | 467 | { |
468 | struct srpc_service *sv = scd->scd_svc; | 468 | struct srpc_service *sv = scd->scd_svc; |
469 | struct srpc_msg *msg = &buf->buf_msg; | 469 | struct srpc_msg *msg = &buf->buf_msg; |
470 | int rc; | 470 | int rc; |
471 | 471 | ||
472 | LNetInvalidateHandle(&buf->buf_mdh); | 472 | LNetInvalidateHandle(&buf->buf_mdh); |
@@ -842,7 +842,7 @@ srpc_prepare_bulk(srpc_client_rpc_t *rpc) | |||
842 | { | 842 | { |
843 | srpc_bulk_t *bk = &rpc->crpc_bulk; | 843 | srpc_bulk_t *bk = &rpc->crpc_bulk; |
844 | srpc_event_t *ev = &rpc->crpc_bulkev; | 844 | srpc_event_t *ev = &rpc->crpc_bulkev; |
845 | __u64 *id = &rpc->crpc_reqstmsg.msg_body.reqst.bulkid; | 845 | __u64 *id = &rpc->crpc_reqstmsg.msg_body.reqst.bulkid; |
846 | int rc; | 846 | int rc; |
847 | int opt; | 847 | int opt; |
848 | 848 | ||
@@ -902,7 +902,7 @@ static void | |||
902 | srpc_server_rpc_done(struct srpc_server_rpc *rpc, int status) | 902 | srpc_server_rpc_done(struct srpc_server_rpc *rpc, int status) |
903 | { | 903 | { |
904 | struct srpc_service_cd *scd = rpc->srpc_scd; | 904 | struct srpc_service_cd *scd = rpc->srpc_scd; |
905 | struct srpc_service *sv = scd->scd_svc; | 905 | struct srpc_service *sv = scd->scd_svc; |
906 | srpc_buffer_t *buffer; | 906 | srpc_buffer_t *buffer; |
907 | 907 | ||
908 | LASSERT(status || rpc->srpc_wi.swi_state == SWI_STATE_DONE); | 908 | LASSERT(status || rpc->srpc_wi.swi_state == SWI_STATE_DONE); |