]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: lustre: selftest: convert lstcon_tsb_hdr_t to proper struct
authorJames Simmons <jsimmons@infradead.org>
Wed, 6 Apr 2016 19:25:45 +0000 (15:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 04:01:20 +0000 (21:01 -0700)
Turn typedef lstcon_tsb_hdr_t to proper structure

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/conrpc.c
drivers/staging/lustre/lnet/selftest/console.c
drivers/staging/lustre/lnet/selftest/console.h

index 4272a6167ad4bca0dec268935ff98ebea605dc67..651d9ef3abdda861dbc939dea544ff21a273cd43 100644 (file)
@@ -650,7 +650,7 @@ lstcon_dbgrpc_prep(struct lstcon_node *nd, unsigned feats, struct lstcon_rpc **c
 
 int
 lstcon_batrpc_prep(struct lstcon_node *nd, int transop, unsigned feats,
-                  lstcon_tsb_hdr_t *tsb, struct lstcon_rpc **crpc)
+                  struct lstcon_tsb_hdr *tsb, struct lstcon_rpc **crpc)
 {
        lstcon_batch_t *batch;
        srpc_batch_reqst_t *brq;
@@ -1135,7 +1135,8 @@ lstcon_rpc_trans_ndlist(struct list_head *ndlist,
                case LST_TRANS_TSBCLIQRY:
                case LST_TRANS_TSBSRVQRY:
                        rc = lstcon_batrpc_prep(nd, transop, feats,
-                                               (lstcon_tsb_hdr_t *)arg, &rpc);
+                                               (struct lstcon_tsb_hdr *)arg,
+                                               &rpc);
                        break;
                case LST_TRANS_STATQRY:
                        rc = lstcon_statrpc_prep(nd, feats, &rpc);
index 47338f56a62cfaf2301a727639037470be53f72f..41f732b91c00e4a4db42273e907d267635b0a49c 100644 (file)
@@ -1406,7 +1406,7 @@ lstcon_test_batch_query(char *name, int testidx, int client,
        struct lstcon_rpc_trans *trans;
        struct list_head *translist;
        struct list_head *ndlist;
-       lstcon_tsb_hdr_t *hdr;
+       struct lstcon_tsb_hdr *hdr;
        lstcon_batch_t *batch;
        lstcon_test_t *test = NULL;
        int transop;
index 74bfcd8650659087e246c9fd531f53721433bb62..427bc9b8c4dcd3e09d5fc5f83a45405f903e5487 100644 (file)
@@ -84,13 +84,13 @@ struct lstcon_group {
 #define LST_BATCH_IDLE   0xB0      /* idle batch */
 #define LST_BATCH_RUNNING 0xB1     /* running batch */
 
-typedef struct lstcon_tsb_hdr {
+struct lstcon_tsb_hdr {
        lst_bid_t        tsb_id;         /* batch ID */
        int              tsb_index;      /* test index */
-} lstcon_tsb_hdr_t;
+};
 
 typedef struct {
-       lstcon_tsb_hdr_t bat_hdr;         /* test_batch header */
+       struct lstcon_tsb_hdr   bat_hdr;        /* test_batch header */
        struct list_head bat_link;        /* chain on session's batches list */
        int              bat_ntest;       /* # of test */
        int              bat_state;       /* state of the batch */
@@ -109,7 +109,7 @@ typedef struct {
 } lstcon_batch_t; /* (tests ) batch descriptor */
 
 typedef struct lstcon_test {
-       lstcon_tsb_hdr_t tes_hdr;        /* test batch header */
+       struct lstcon_tsb_hdr   tes_hdr;        /* test batch header */
        struct list_head tes_link;       /* chain on batch's tests list */
        lstcon_batch_t   *tes_batch;     /* pointer to batch */