staging: lustre: lnet: change lst_test_bulk_param_t to proper structure
authorJames Simmons <jsimmons@infradead.org>
Mon, 16 Jan 2017 21:30:34 +0000 (16:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 10:12:53 +0000 (11:12 +0100)
Change lst_test_bulk_param_t from typedef to proper structure.

Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6142
Reviewed-on: https://review.whamcloud.com/24188
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/lnet/lnetst.h
drivers/staging/lustre/lnet/selftest/conrpc.c

index 0279e090157d5886e7e6c9bd8cf8101f11a00a04..d59d7ba674beab58f424c4ebfa6509a4b54b53fc 100644 (file)
@@ -485,14 +485,14 @@ enum lst_brw_flags {
        LST_BRW_CHECK_FULL      = 3
 };
 
-typedef struct {
+struct lst_test_bulk_param {
        int     blk_opc;        /* bulk operation code */
        int     blk_size;       /* size (bytes) */
        int     blk_time;       /* time of running the test*/
        int     blk_flags;      /* reserved flags */
        int     blk_cli_off;    /* bulk offset on client */
        int     blk_srv_off;    /* reserved: bulk offset on server */
-} lst_test_bulk_param_t;
+};
 
 typedef struct {
        int     png_size;       /* size of ping message */
index 3b97915d3bdaad7b7f932feef689a7265cf080c2..bcbe84efd002667d193b215dddfaf1df9c59aca1 100644 (file)
@@ -779,7 +779,7 @@ lstcon_pingrpc_prep(lst_test_ping_param_t *param, struct srpc_test_reqst *req)
 }
 
 static int
-lstcon_bulkrpc_v0_prep(lst_test_bulk_param_t *param,
+lstcon_bulkrpc_v0_prep(struct lst_test_bulk_param *param,
                       struct srpc_test_reqst *req)
 {
        struct test_bulk_req *brq = &req->tsr_u.bulk_v0;
@@ -793,7 +793,7 @@ lstcon_bulkrpc_v0_prep(lst_test_bulk_param_t *param,
 }
 
 static int
-lstcon_bulkrpc_v1_prep(lst_test_bulk_param_t *param, bool is_client,
+lstcon_bulkrpc_v1_prep(struct lst_test_bulk_param *param, bool is_client,
                       struct srpc_test_reqst *req)
 {
        struct test_bulk_req_v1 *brq = &req->tsr_u.bulk_v1;
@@ -898,10 +898,10 @@ lstcon_testrpc_prep(struct lstcon_node *nd, int transop, unsigned int feats,
        case LST_TEST_BULK:
                trq->tsr_service = SRPC_SERVICE_BRW;
                if (!(feats & LST_FEAT_BULK_LEN)) {
-                       rc = lstcon_bulkrpc_v0_prep((lst_test_bulk_param_t *)
+                       rc = lstcon_bulkrpc_v0_prep((struct lst_test_bulk_param *)
                                                    &test->tes_param[0], trq);
                } else {
-                       rc = lstcon_bulkrpc_v1_prep((lst_test_bulk_param_t *)
+                       rc = lstcon_bulkrpc_v1_prep((struct lst_test_bulk_param *)
                                                    &test->tes_param[0],
                                                    trq->tsr_is_client, trq);
                }