Commit 4d72b5af authored by Rashika Kheria's avatar Rashika Kheria Committed by Greg Kroah-Hartman

Staging: lustre: Removal of Space between function name and parenthesis in conrpc.c

The patch fixes the following checkpatch.pl warning in conrpc.c-
WARNING: space prohibited between function name and open parenthesis '('
Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f1490809
...@@ -75,7 +75,7 @@ lstcon_rpc_done(srpc_client_rpc_t *rpc) ...@@ -75,7 +75,7 @@ lstcon_rpc_done(srpc_client_rpc_t *rpc)
if (crpc->crp_stamp == 0) { if (crpc->crp_stamp == 0) {
/* not aborted */ /* not aborted */
LASSERT (crpc->crp_status == 0); LASSERT(crpc->crp_status == 0);
crpc->crp_stamp = cfs_time_current(); crpc->crp_stamp = cfs_time_current();
crpc->crp_status = rpc->crpc_status; crpc->crp_status = rpc->crpc_status;
...@@ -153,7 +153,7 @@ lstcon_rpc_put(lstcon_rpc_t *crpc) ...@@ -153,7 +153,7 @@ lstcon_rpc_put(lstcon_rpc_t *crpc)
srpc_bulk_t *bulk = &crpc->crp_rpc->crpc_bulk; srpc_bulk_t *bulk = &crpc->crp_rpc->crpc_bulk;
int i; int i;
LASSERT (list_empty(&crpc->crp_link)); LASSERT(list_empty(&crpc->crp_link));
for (i = 0; i < bulk->bk_niov; i++) { for (i = 0; i < bulk->bk_niov; i++) {
if (bulk->bk_iovs[i].kiov_page == NULL) if (bulk->bk_iovs[i].kiov_page == NULL)
...@@ -187,7 +187,7 @@ lstcon_rpc_post(lstcon_rpc_t *crpc) ...@@ -187,7 +187,7 @@ lstcon_rpc_post(lstcon_rpc_t *crpc)
{ {
lstcon_rpc_trans_t *trans = crpc->crp_trans; lstcon_rpc_trans_t *trans = crpc->crp_trans;
LASSERT (trans != NULL); LASSERT(trans != NULL);
atomic_inc(&trans->tas_remaining); atomic_inc(&trans->tas_remaining);
crpc->crp_posted = 1; crpc->crp_posted = 1;
...@@ -289,7 +289,7 @@ lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error) ...@@ -289,7 +289,7 @@ lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error)
lstcon_rpc_t *crpc; lstcon_rpc_t *crpc;
lstcon_node_t *nd; lstcon_node_t *nd;
list_for_each_entry (crpc, &trans->tas_rpcs_list, crp_link) { list_for_each_entry(crpc, &trans->tas_rpcs_list, crp_link) {
rpc = crpc->crp_rpc; rpc = crpc->crp_rpc;
spin_lock(&rpc->crpc_lock); spin_lock(&rpc->crpc_lock);
...@@ -349,8 +349,8 @@ lstcon_rpc_trans_postwait(lstcon_rpc_trans_t *trans, int timeout) ...@@ -349,8 +349,8 @@ lstcon_rpc_trans_postwait(lstcon_rpc_trans_t *trans, int timeout)
lstcon_rpc_trans_name(trans->tas_opc)); lstcon_rpc_trans_name(trans->tas_opc));
/* post all requests */ /* post all requests */
list_for_each_entry (crpc, &trans->tas_rpcs_list, crp_link) { list_for_each_entry(crpc, &trans->tas_rpcs_list, crp_link) {
LASSERT (!crpc->crp_posted); LASSERT(!crpc->crp_posted);
lstcon_rpc_post(crpc); lstcon_rpc_post(crpc);
} }
...@@ -390,8 +390,8 @@ lstcon_rpc_get_reply(lstcon_rpc_t *crpc, srpc_msg_t **msgpp) ...@@ -390,8 +390,8 @@ lstcon_rpc_get_reply(lstcon_rpc_t *crpc, srpc_msg_t **msgpp)
srpc_client_rpc_t *rpc = crpc->crp_rpc; srpc_client_rpc_t *rpc = crpc->crp_rpc;
srpc_generic_reply_t *rep; srpc_generic_reply_t *rep;
LASSERT (nd != NULL && rpc != NULL); LASSERT(nd != NULL && rpc != NULL);
LASSERT (crpc->crp_stamp != 0); LASSERT(crpc->crp_stamp != 0);
if (crpc->crp_status != 0) { if (crpc->crp_status != 0) {
*msgpp = NULL; *msgpp = NULL;
...@@ -427,14 +427,14 @@ lstcon_rpc_trans_stat(lstcon_rpc_trans_t *trans, lstcon_trans_stat_t *stat) ...@@ -427,14 +427,14 @@ lstcon_rpc_trans_stat(lstcon_rpc_trans_t *trans, lstcon_trans_stat_t *stat)
srpc_msg_t *rep; srpc_msg_t *rep;
int error; int error;
LASSERT (stat != NULL); LASSERT(stat != NULL);
memset(stat, 0, sizeof(*stat)); memset(stat, 0, sizeof(*stat));
list_for_each_entry(crpc, &trans->tas_rpcs_list, crp_link) { list_for_each_entry(crpc, &trans->tas_rpcs_list, crp_link) {
lstcon_rpc_stat_total(stat, 1); lstcon_rpc_stat_total(stat, 1);
LASSERT (crpc->crp_stamp != 0); LASSERT(crpc->crp_stamp != 0);
error = lstcon_rpc_get_reply(crpc, &rep); error = lstcon_rpc_get_reply(crpc, &rep);
if (error != 0) { if (error != 0) {
...@@ -482,7 +482,7 @@ lstcon_rpc_trans_interpreter(lstcon_rpc_trans_t *trans, ...@@ -482,7 +482,7 @@ lstcon_rpc_trans_interpreter(lstcon_rpc_trans_t *trans,
struct timeval tv; struct timeval tv;
int error; int error;
LASSERT (head_up != NULL); LASSERT(head_up != NULL);
next = head_up; next = head_up;
...@@ -498,7 +498,7 @@ lstcon_rpc_trans_interpreter(lstcon_rpc_trans_t *trans, ...@@ -498,7 +498,7 @@ lstcon_rpc_trans_interpreter(lstcon_rpc_trans_t *trans,
ent = list_entry(next, lstcon_rpc_ent_t, rpe_link); ent = list_entry(next, lstcon_rpc_ent_t, rpe_link);
LASSERT (crpc->crp_stamp != 0); LASSERT(crpc->crp_stamp != 0);
error = lstcon_rpc_get_reply(crpc, &msg); error = lstcon_rpc_get_reply(crpc, &msg);
...@@ -568,7 +568,7 @@ lstcon_rpc_trans_destroy(lstcon_rpc_trans_t *trans) ...@@ -568,7 +568,7 @@ lstcon_rpc_trans_destroy(lstcon_rpc_trans_t *trans)
* user wait for them, just abandon them, they will be recycled * user wait for them, just abandon them, they will be recycled
* in callback */ * in callback */
LASSERT (crpc->crp_status != 0); LASSERT(crpc->crp_status != 0);
crpc->crp_node = NULL; crpc->crp_node = NULL;
crpc->crp_trans = NULL; crpc->crp_trans = NULL;
...@@ -580,7 +580,7 @@ lstcon_rpc_trans_destroy(lstcon_rpc_trans_t *trans) ...@@ -580,7 +580,7 @@ lstcon_rpc_trans_destroy(lstcon_rpc_trans_t *trans)
atomic_dec(&trans->tas_remaining); atomic_dec(&trans->tas_remaining);
} }
LASSERT (atomic_read(&trans->tas_remaining) == 0); LASSERT(atomic_read(&trans->tas_remaining) == 0);
list_del(&trans->tas_link); list_del(&trans->tas_link);
if (!list_empty(&trans->tas_olink)) if (!list_empty(&trans->tas_olink))
...@@ -676,7 +676,7 @@ lstcon_batrpc_prep(lstcon_node_t *nd, int transop, unsigned feats, ...@@ -676,7 +676,7 @@ lstcon_batrpc_prep(lstcon_node_t *nd, int transop, unsigned feats,
transop != LST_TRANS_TSBSTOP) transop != LST_TRANS_TSBSTOP)
return 0; return 0;
LASSERT (tsb->tsb_index == 0); LASSERT(tsb->tsb_index == 0);
batch = (lstcon_batch_t *)tsb; batch = (lstcon_batch_t *)tsb;
brq->bar_arg = batch->bat_arg; brq->bar_arg = batch->bat_arg;
...@@ -710,7 +710,7 @@ lstcon_next_id(int idx, int nkiov, lnet_kiov_t *kiov) ...@@ -710,7 +710,7 @@ lstcon_next_id(int idx, int nkiov, lnet_kiov_t *kiov)
i = idx / SFW_ID_PER_PAGE; i = idx / SFW_ID_PER_PAGE;
LASSERT (i < nkiov); LASSERT(i < nkiov);
pid = (lnet_process_id_packed_t *)page_address(kiov[i].kiov_page); pid = (lnet_process_id_packed_t *)page_address(kiov[i].kiov_page);
...@@ -728,9 +728,9 @@ lstcon_dstnodes_prep(lstcon_group_t *grp, int idx, ...@@ -728,9 +728,9 @@ lstcon_dstnodes_prep(lstcon_group_t *grp, int idx,
int end; int end;
int i = 0; int i = 0;
LASSERT (dist >= 1); LASSERT(dist >= 1);
LASSERT (span >= 1); LASSERT(span >= 1);
LASSERT (grp->grp_nnode >= 1); LASSERT(grp->grp_nnode >= 1);
if (span > grp->grp_nnode) if (span > grp->grp_nnode)
return -EINVAL; return -EINVAL;
...@@ -866,7 +866,7 @@ lstcon_testrpc_prep(lstcon_node_t *nd, int transop, unsigned feats, ...@@ -866,7 +866,7 @@ lstcon_testrpc_prep(lstcon_node_t *nd, int transop, unsigned feats,
bulk->bk_sink = 0; bulk->bk_sink = 0;
LASSERT (transop == LST_TRANS_TSBCLIADD); LASSERT(transop == LST_TRANS_TSBCLIADD);
rc = lstcon_dstnodes_prep(test->tes_dst_grp, rc = lstcon_dstnodes_prep(test->tes_dst_grp,
test->tes_cliidx++, test->tes_cliidx++,
...@@ -1193,7 +1193,7 @@ lstcon_rpc_pinger(void *arg) ...@@ -1193,7 +1193,7 @@ lstcon_rpc_pinger(void *arg)
trans = console_session.ses_ping; trans = console_session.ses_ping;
LASSERT (trans != NULL); LASSERT(trans != NULL);
list_for_each_entry(ndl, &console_session.ses_ndl_list, ndl_link) { list_for_each_entry(ndl, &console_session.ses_ndl_list, ndl_link) {
nd = ndl->ndl_node; nd = ndl->ndl_node;
...@@ -1219,8 +1219,8 @@ lstcon_rpc_pinger(void *arg) ...@@ -1219,8 +1219,8 @@ lstcon_rpc_pinger(void *arg)
crpc = &nd->nd_ping; crpc = &nd->nd_ping;
if (crpc->crp_rpc != NULL) { if (crpc->crp_rpc != NULL) {
LASSERT (crpc->crp_trans == trans); LASSERT(crpc->crp_trans == trans);
LASSERT (!list_empty(&crpc->crp_link)); LASSERT(!list_empty(&crpc->crp_link));
spin_lock(&crpc->crp_rpc->crpc_lock); spin_lock(&crpc->crp_rpc->crpc_lock);
...@@ -1286,8 +1286,8 @@ lstcon_rpc_pinger_start(void) ...@@ -1286,8 +1286,8 @@ lstcon_rpc_pinger_start(void)
stt_timer_t *ptimer; stt_timer_t *ptimer;
int rc; int rc;
LASSERT (list_empty(&console_session.ses_rpc_freelist)); LASSERT(list_empty(&console_session.ses_rpc_freelist));
LASSERT (atomic_read(&console_session.ses_rpc_counter) == 0); LASSERT(atomic_read(&console_session.ses_rpc_counter) == 0);
rc = lstcon_rpc_trans_prep(NULL, LST_TRANS_SESPING, rc = lstcon_rpc_trans_prep(NULL, LST_TRANS_SESPING,
&console_session.ses_ping); &console_session.ses_ping);
...@@ -1307,7 +1307,7 @@ lstcon_rpc_pinger_start(void) ...@@ -1307,7 +1307,7 @@ lstcon_rpc_pinger_start(void)
void void
lstcon_rpc_pinger_stop(void) lstcon_rpc_pinger_stop(void)
{ {
LASSERT (console_session.ses_shutdown); LASSERT(console_session.ses_shutdown);
stt_del_timer(&console_session.ses_ping_timer); stt_del_timer(&console_session.ses_ping_timer);
...@@ -1330,7 +1330,7 @@ lstcon_rpc_cleanup_wait(void) ...@@ -1330,7 +1330,7 @@ lstcon_rpc_cleanup_wait(void)
/* Called with hold of global mutex */ /* Called with hold of global mutex */
LASSERT (console_session.ses_shutdown); LASSERT(console_session.ses_shutdown);
while (!list_empty(&console_session.ses_trans_list)) { while (!list_empty(&console_session.ses_trans_list)) {
list_for_each(pacer, &console_session.ses_trans_list) { list_for_each(pacer, &console_session.ses_trans_list) {
...@@ -1392,6 +1392,6 @@ lstcon_rpc_module_init(void) ...@@ -1392,6 +1392,6 @@ lstcon_rpc_module_init(void)
void void
lstcon_rpc_module_fini(void) lstcon_rpc_module_fini(void)
{ {
LASSERT (list_empty(&console_session.ses_rpc_freelist)); LASSERT(list_empty(&console_session.ses_rpc_freelist));
LASSERT (atomic_read(&console_session.ses_rpc_counter) == 0); LASSERT(atomic_read(&console_session.ses_rpc_counter) == 0);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment