staging: lustre: lnet: change lst_test_ping_param_t to proper structure
authorJames Simmons <jsimmons@infradead.org>
Mon, 16 Jan 2017 21:30:35 +0000 (16:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 10:12:53 +0000 (11:12 +0100)
Change lst_test_ping_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 d59d7ba674beab58f424c4ebfa6509a4b54b53fc..a9c5b6db06fcc65653129e1c638ccf4409f320ad 100644 (file)
@@ -494,12 +494,12 @@ struct lst_test_bulk_param {
        int     blk_srv_off;    /* reserved: bulk offset on server */
 };
 
-typedef struct {
+struct lst_test_ping_param {
        int     png_size;       /* size of ping message */
        int     png_time;       /* time */
        int     png_loop;       /* loop */
        int     png_flags;      /* reserved flags */
-} lst_test_ping_param_t;
+};
 
 typedef struct {
        __u32 errors;
index bcbe84efd002667d193b215dddfaf1df9c59aca1..3d325ea7908c420bf2bc189cc49c4ba8024097cb 100644 (file)
@@ -768,7 +768,7 @@ lstcon_dstnodes_prep(struct lstcon_group *grp, int idx,
 }
 
 static int
-lstcon_pingrpc_prep(lst_test_ping_param_t *param, struct srpc_test_reqst *req)
+lstcon_pingrpc_prep(struct lst_test_ping_param *param, struct srpc_test_reqst *req)
 {
        struct test_ping_req *prq = &req->tsr_u.ping;
 
@@ -891,7 +891,7 @@ lstcon_testrpc_prep(struct lstcon_node *nd, int transop, unsigned int feats,
        switch (test->tes_type) {
        case LST_TEST_PING:
                trq->tsr_service = SRPC_SERVICE_PING;
-               rc = lstcon_pingrpc_prep((lst_test_ping_param_t *)
+               rc = lstcon_pingrpc_prep((struct lst_test_ping_param *)
                                         &test->tes_param[0], trq);
                break;