summaryrefslogtreecommitdiff
path: root/drivers/staging/lustre/lnet/selftest/selftest.h
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2016-03-03 00:46:37 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-02 15:28:13 -0800
commit27f9aea3dbfc99dcc9b1a7e043838504aaf294a4 (patch)
treebb8aab7556a74aad377bc5117f89f8cafc7719f6 /drivers/staging/lustre/lnet/selftest/selftest.h
parent5210a63ad9e58139ef378bb6668f2467e307fc70 (diff)
Staging: lustre: lnet: Remove and rename struct typedefs
Remove typedefs from structures stt_timer_t and lst_ping_data_t as typedef for a structure type is not preferred. The suffix '_t' and the typedefs are removed using coccinelle. Script 1: //Drop typedefs and '_t' @r1@ type T; @@ typedef struct { ... } T; @script:python c1@ T2; T << r1.T; @@ if T[-2:] =="_t": coccinelle.T2 = T[:-2]; print T else: coccinelle.T2=T; @@ type r1.T; identifier c1.T2; @@ -typedef struct + T2 { ... } -T ; Script 2: //Replacement @@ typedef stt_timer_t; typedef lst_ping_data_t; @@ ( - stt_timer_t + struct stt_timer | - lst_ping_data_t + struct lst_ping_data ) Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lnet/selftest/selftest.h')
-rw-r--r--drivers/staging/lustre/lnet/selftest/selftest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/selftest.h b/drivers/staging/lustre/lnet/selftest/selftest.h
index f6c824472268..4ca274f1798f 100644
--- a/drivers/staging/lustre/lnet/selftest/selftest.h
+++ b/drivers/staging/lustre/lnet/selftest/selftest.h
@@ -207,7 +207,7 @@ typedef struct srpc_client_rpc {
int crpc_service;
atomic_t crpc_refcount;
int crpc_timeout; /* # seconds to wait for reply */
- stt_timer_t crpc_timer;
+ struct stt_timer crpc_timer;
swi_workitem_t crpc_wi;
lnet_process_id_t crpc_dest;
@@ -328,7 +328,7 @@ typedef struct {
unsigned int sn_timeout; /* # seconds' inactivity to expire */
int sn_timer_active;
unsigned int sn_features;
- stt_timer_t sn_timer;
+ struct stt_timer sn_timer;
struct list_head sn_batches; /* list of batches */
char sn_name[LST_NAME_SIZE];
atomic_t sn_refcount;