Skip to content

Commit 00b5fdb

Browse files
jamesasimmonsgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d47e33e commit 00b5fdb

File tree

6 files changed

+72
-72
lines changed

6 files changed

+72
-72
lines changed

drivers/staging/lustre/lnet/selftest/brw_test.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ MODULE_PARM_DESC(brw_inject_errors, "# data errors to inject randomly, zero by d
5151
static void
5252
brw_client_fini(sfw_test_instance_t *tsi)
5353
{
54-
srpc_bulk_t *bulk;
55-
sfw_test_unit_t *tsu;
54+
srpc_bulk_t *bulk;
55+
sfw_test_unit_t *tsu;
5656

5757
LASSERT(tsi->tsi_is_client);
5858

@@ -69,19 +69,19 @@ brw_client_fini(sfw_test_instance_t *tsi)
6969
static int
7070
brw_client_init(sfw_test_instance_t *tsi)
7171
{
72-
sfw_session_t *sn = tsi->tsi_batch->bat_session;
73-
int flags;
74-
int npg;
75-
int len;
76-
int opc;
77-
srpc_bulk_t *bulk;
78-
sfw_test_unit_t *tsu;
72+
sfw_session_t *sn = tsi->tsi_batch->bat_session;
73+
int flags;
74+
int npg;
75+
int len;
76+
int opc;
77+
srpc_bulk_t *bulk;
78+
sfw_test_unit_t *tsu;
7979

8080
LASSERT(sn);
8181
LASSERT(tsi->tsi_is_client);
8282

8383
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;
8585

8686
opc = breq->blk_opc;
8787
flags = breq->blk_flags;
@@ -155,7 +155,7 @@ static void
155155
brw_fill_page(struct page *pg, int pattern, __u64 magic)
156156
{
157157
char *addr = page_address(pg);
158-
int i;
158+
int i;
159159

160160
LASSERT(addr);
161161

@@ -184,9 +184,9 @@ brw_fill_page(struct page *pg, int pattern, __u64 magic)
184184
static int
185185
brw_check_page(struct page *pg, int pattern, __u64 magic)
186186
{
187-
char *addr = page_address(pg);
188-
__u64 data = 0; /* make compiler happy */
189-
int i;
187+
char *addr = page_address(pg);
188+
__u64 data = 0; /* make compiler happy */
189+
int i;
190190

191191
LASSERT(addr);
192192

drivers/staging/lustre/lnet/selftest/conctl.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ lst_session_info_ioctl(lstio_session_info_args_t *args)
115115
static int
116116
lst_debug_ioctl(lstio_debug_args_t *args)
117117
{
118-
char *name = NULL;
119-
int client = 1;
120-
int rc;
118+
char *name = NULL;
119+
int client = 1;
120+
int rc;
121121

122122
if (args->lstio_dbg_key != console_session.ses_key)
123123
return -EACCES;
@@ -229,8 +229,8 @@ lst_group_add_ioctl(lstio_group_add_args_t *args)
229229
static int
230230
lst_group_del_ioctl(lstio_group_del_args_t *args)
231231
{
232-
int rc;
233-
char *name;
232+
int rc;
233+
char *name;
234234

235235
if (args->lstio_grp_key != console_session.ses_key)
236236
return -EACCES;
@@ -262,8 +262,8 @@ lst_group_del_ioctl(lstio_group_del_args_t *args)
262262
static int
263263
lst_group_update_ioctl(lstio_group_update_args_t *args)
264264
{
265-
int rc;
266-
char *name;
265+
int rc;
266+
char *name;
267267

268268
if (args->lstio_grp_key != console_session.ses_key)
269269
return -EACCES;
@@ -547,8 +547,8 @@ lst_batch_stop_ioctl(lstio_batch_stop_args_t *args)
547547
static int
548548
lst_batch_query_ioctl(lstio_batch_query_args_t *args)
549549
{
550-
char *name;
551-
int rc;
550+
char *name;
551+
int rc;
552552

553553
if (args->lstio_bat_key != console_session.ses_key)
554554
return -EACCES;
@@ -714,12 +714,12 @@ lst_stat_query_ioctl(lstio_stat_args_t *args)
714714

715715
static int lst_test_add_ioctl(lstio_test_args_t *args)
716716
{
717-
char *batch_name;
718-
char *src_name = NULL;
719-
char *dst_name = NULL;
720-
void *param = NULL;
721-
int ret = 0;
722-
int rc = -ENOMEM;
717+
char *batch_name;
718+
char *src_name = NULL;
719+
char *dst_name = NULL;
720+
void *param = NULL;
721+
int ret = 0;
722+
int rc = -ENOMEM;
723723

724724
if (!args->lstio_tes_resultp ||
725725
!args->lstio_tes_retp ||
@@ -807,10 +807,10 @@ static int lst_test_add_ioctl(lstio_test_args_t *args)
807807
int
808808
lstcon_ioctl_entry(unsigned int cmd, struct libcfs_ioctl_hdr *hdr)
809809
{
810-
char *buf;
810+
char *buf;
811811
struct libcfs_ioctl_data *data;
812-
int opc;
813-
int rc;
812+
int opc;
813+
int rc;
814814

815815
if (cmd != IOC_LIBCFS_LNETST)
816816
return -EINVAL;

drivers/staging/lustre/lnet/selftest/conrpc.c

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ void
288288
lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error)
289289
{
290290
srpc_client_rpc_t *rpc;
291-
lstcon_rpc_t *crpc;
292-
lstcon_node_t *nd;
291+
lstcon_rpc_t *crpc;
292+
lstcon_node_t *nd;
293293

294294
list_for_each_entry(crpc, &trans->tas_rpcs_list, crp_link) {
295295
rpc = crpc->crp_rpc;
@@ -388,7 +388,7 @@ lstcon_rpc_trans_postwait(lstcon_rpc_trans_t *trans, int timeout)
388388
static int
389389
lstcon_rpc_get_reply(lstcon_rpc_t *crpc, srpc_msg_t **msgpp)
390390
{
391-
lstcon_node_t *nd = crpc->crp_node;
391+
lstcon_node_t *nd = crpc->crp_node;
392392
srpc_client_rpc_t *rpc = crpc->crp_rpc;
393393
srpc_generic_reply_t *rep;
394394

@@ -425,7 +425,7 @@ lstcon_rpc_get_reply(lstcon_rpc_t *crpc, srpc_msg_t **msgpp)
425425
void
426426
lstcon_rpc_trans_stat(lstcon_rpc_trans_t *trans, lstcon_trans_stat_t *stat)
427427
{
428-
lstcon_rpc_t *crpc;
428+
lstcon_rpc_t *crpc;
429429
srpc_msg_t *rep;
430430
int error;
431431

@@ -654,9 +654,9 @@ int
654654
lstcon_batrpc_prep(lstcon_node_t *nd, int transop, unsigned feats,
655655
lstcon_tsb_hdr_t *tsb, lstcon_rpc_t **crpc)
656656
{
657-
lstcon_batch_t *batch;
657+
lstcon_batch_t *batch;
658658
srpc_batch_reqst_t *brq;
659-
int rc;
659+
int rc;
660660

661661
rc = lstcon_rpc_prep(nd, SRPC_SERVICE_BATCH, feats, 0, 0, crpc);
662662
if (rc)
@@ -687,7 +687,7 @@ int
687687
lstcon_statrpc_prep(lstcon_node_t *nd, unsigned feats, lstcon_rpc_t **crpc)
688688
{
689689
srpc_stat_reqst_t *srq;
690-
int rc;
690+
int rc;
691691

692692
rc = lstcon_rpc_prep(nd, SRPC_SERVICE_QUERY_STAT, feats, 0, 0, crpc);
693693
if (rc)
@@ -811,14 +811,14 @@ int
811811
lstcon_testrpc_prep(lstcon_node_t *nd, int transop, unsigned feats,
812812
lstcon_test_t *test, lstcon_rpc_t **crpc)
813813
{
814-
lstcon_group_t *sgrp = test->tes_src_grp;
815-
lstcon_group_t *dgrp = test->tes_dst_grp;
814+
lstcon_group_t *sgrp = test->tes_src_grp;
815+
lstcon_group_t *dgrp = test->tes_dst_grp;
816816
srpc_test_reqst_t *trq;
817-
srpc_bulk_t *bulk;
818-
int i;
819-
int npg = 0;
820-
int nob = 0;
821-
int rc = 0;
817+
srpc_bulk_t *bulk;
818+
int i;
819+
int npg = 0;
820+
int nob = 0;
821+
int rc = 0;
822822

823823
if (transop == LST_TRANS_TSBCLIADD) {
824824
npg = sfw_id_pages(test->tes_span);
@@ -847,7 +847,7 @@ lstcon_testrpc_prep(lstcon_node_t *nd, int transop, unsigned feats,
847847
bulk = &(*crpc)->crp_rpc->crpc_bulk;
848848

849849
for (i = 0; i < npg; i++) {
850-
int len;
850+
int len;
851851

852852
LASSERT(nob > 0);
853853

@@ -922,7 +922,7 @@ lstcon_sesnew_stat_reply(lstcon_rpc_trans_t *trans,
922922
lstcon_node_t *nd, srpc_msg_t *reply)
923923
{
924924
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;
926926

927927
if (!status &&
928928
(reply->msg_ses_feats & ~LST_FEATS_MASK)) {
@@ -968,12 +968,12 @@ void
968968
lstcon_rpc_stat_reply(lstcon_rpc_trans_t *trans, srpc_msg_t *msg,
969969
lstcon_node_t *nd, lstcon_trans_stat_t *stat)
970970
{
971-
srpc_rmsn_reply_t *rmsn_rep;
971+
srpc_rmsn_reply_t *rmsn_rep;
972972
srpc_debug_reply_t *dbg_rep;
973973
srpc_batch_reply_t *bat_rep;
974-
srpc_test_reply_t *test_rep;
975-
srpc_stat_reply_t *stat_rep;
976-
int rc = 0;
974+
srpc_test_reply_t *test_rep;
975+
srpc_stat_reply_t *stat_rep;
976+
int rc = 0;
977977

978978
switch (trans->tas_opc) {
979979
case LST_TRANS_SESNEW:

drivers/staging/lustre/lnet/selftest/console.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ lstcon_node_get(lstcon_node_t *nd)
7171
static int
7272
lstcon_node_find(lnet_process_id_t id, lstcon_node_t **ndpp, int create)
7373
{
74-
lstcon_ndlink_t *ndl;
74+
lstcon_ndlink_t *ndl;
7575
unsigned int idx = LNET_NIDADDR(id.nid) % LST_GLOBAL_HASHSIZE;
7676

7777
LASSERT(id.nid != LNET_NID_ANY);
@@ -403,7 +403,7 @@ lstcon_group_nodes_add(lstcon_group_t *grp,
403403
unsigned *featp, struct list_head __user *result_up)
404404
{
405405
lstcon_rpc_trans_t *trans;
406-
lstcon_ndlink_t *ndl;
406+
lstcon_ndlink_t *ndl;
407407
lstcon_group_t *tmp;
408408
lnet_process_id_t id;
409409
int i;
@@ -935,7 +935,7 @@ lstcon_batch_info(char *name, lstcon_test_batch_ent_t __user *ent_up,
935935
struct list_head *srvlst;
936936
lstcon_test_t *test = NULL;
937937
lstcon_batch_t *bat;
938-
lstcon_ndlink_t *ndl;
938+
lstcon_ndlink_t *ndl;
939939
int rc;
940940

941941
rc = lstcon_batch_find(name, &bat);
@@ -1258,7 +1258,7 @@ static int
12581258
lstcon_verify_group(const char *name, lstcon_group_t **grp)
12591259
{
12601260
int rc;
1261-
lstcon_ndlink_t *ndl;
1261+
lstcon_ndlink_t *ndl;
12621262

12631263
rc = lstcon_group_find(name, grp);
12641264
if (rc) {
@@ -1283,11 +1283,11 @@ lstcon_test_add(char *batch_name, int type, int loop,
12831283
void *param, int paramlen, int *retp,
12841284
struct list_head __user *result_up)
12851285
{
1286-
lstcon_test_t *test = NULL;
1287-
int rc;
1288-
lstcon_group_t *src_grp = NULL;
1289-
lstcon_group_t *dst_grp = NULL;
1290-
lstcon_batch_t *batch = NULL;
1286+
lstcon_test_t *test = NULL;
1287+
int rc;
1288+
lstcon_group_t *src_grp = NULL;
1289+
lstcon_group_t *dst_grp = NULL;
1290+
lstcon_batch_t *batch = NULL;
12911291

12921292
/*
12931293
* verify that a batch of the given name exists, and the groups
@@ -1535,7 +1535,7 @@ int
15351535
lstcon_nodes_stat(int count, lnet_process_id_t __user *ids_up,
15361536
int timeout, struct list_head __user *result_up)
15371537
{
1538-
lstcon_ndlink_t *ndl;
1538+
lstcon_ndlink_t *ndl;
15391539
lstcon_group_t *tmp;
15401540
lnet_process_id_t id;
15411541
int i;
@@ -1581,7 +1581,7 @@ lstcon_debug_ndlist(struct list_head *ndlist,
15811581
int timeout, struct list_head __user *result_up)
15821582
{
15831583
lstcon_rpc_trans_t *trans;
1584-
int rc;
1584+
int rc;
15851585

15861586
rc = lstcon_rpc_trans_ndlist(ndlist, translist, LST_TRANS_SESQRY,
15871587
NULL, lstcon_sesrpc_condition, &trans);
@@ -1905,13 +1905,13 @@ lstcon_session_feats_check(unsigned feats)
19051905
static int
19061906
lstcon_acceptor_handle(struct srpc_server_rpc *rpc)
19071907
{
1908-
srpc_msg_t *rep = &rpc->srpc_replymsg;
1909-
srpc_msg_t *req = &rpc->srpc_reqstbuf->buf_msg;
1908+
srpc_msg_t *rep = &rpc->srpc_replymsg;
1909+
srpc_msg_t *req = &rpc->srpc_reqstbuf->buf_msg;
19101910
srpc_join_reqst_t *jreq = &req->msg_body.join_reqst;
19111911
srpc_join_reply_t *jrep = &rep->msg_body.join_reply;
1912-
lstcon_group_t *grp = NULL;
1912+
lstcon_group_t *grp = NULL;
19131913
lstcon_ndlink_t *ndl;
1914-
int rc = 0;
1914+
int rc = 0;
19151915

19161916
sfw_unpack_message(req);
19171917

drivers/staging/lustre/lnet/selftest/ping_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ ping_client_done_rpc(sfw_test_unit_t *tsu, srpc_client_rpc_t *rpc)
170170
static int
171171
ping_server_handle(struct srpc_server_rpc *rpc)
172172
{
173-
struct srpc_service *sv = rpc->srpc_scd->scd_svc;
173+
struct srpc_service *sv = rpc->srpc_scd->scd_svc;
174174
srpc_msg_t *reqstmsg = &rpc->srpc_reqstbuf->buf_msg;
175175
srpc_msg_t *replymsg = &rpc->srpc_replymsg;
176176
srpc_ping_reqst_t *req = &reqstmsg->msg_body.ping_reqst;

drivers/staging/lustre/lnet/selftest/rpc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static int
451451
srpc_post_passive_rqtbuf(int service, int local, void *buf, int len,
452452
lnet_handle_md_t *mdh, srpc_event_t *ev)
453453
{
454-
lnet_process_id_t any = {0};
454+
lnet_process_id_t any = { 0 };
455455

456456
any.nid = LNET_NID_ANY;
457457
any.pid = LNET_PID_ANY;
@@ -466,7 +466,7 @@ srpc_service_post_buffer(struct srpc_service_cd *scd, struct srpc_buffer *buf)
466466
__must_hold(&scd->scd_lock)
467467
{
468468
struct srpc_service *sv = scd->scd_svc;
469-
struct srpc_msg *msg = &buf->buf_msg;
469+
struct srpc_msg *msg = &buf->buf_msg;
470470
int rc;
471471

472472
LNetInvalidateHandle(&buf->buf_mdh);
@@ -842,7 +842,7 @@ srpc_prepare_bulk(srpc_client_rpc_t *rpc)
842842
{
843843
srpc_bulk_t *bk = &rpc->crpc_bulk;
844844
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;
846846
int rc;
847847
int opt;
848848

@@ -902,7 +902,7 @@ static void
902902
srpc_server_rpc_done(struct srpc_server_rpc *rpc, int status)
903903
{
904904
struct srpc_service_cd *scd = rpc->srpc_scd;
905-
struct srpc_service *sv = scd->scd_svc;
905+
struct srpc_service *sv = scd->scd_svc;
906906
srpc_buffer_t *buffer;
907907

908908
LASSERT(status || rpc->srpc_wi.swi_state == SWI_STATE_DONE);

0 commit comments

Comments
 (0)