staging: lustre: selftest: change srpc_state_t to proper enum
authorJames Simmons <jsimmons@infradead.org>
Wed, 6 Apr 2016 19:25:50 +0000 (15:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 04:01:58 +0000 (21:01 -0700)
Turn typedef srpc_state_t to proper enum

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

index 91af6ba322fb812c3b2f57e0a6c2adda54efe6fe..561e28c644b1d680c5f9f2ed34aaa08ae50c6b37 100644 (file)
 
 #include "selftest.h"
 
-typedef enum {
+enum srpc_state {
        SRPC_STATE_NONE,
        SRPC_STATE_NI_INIT,
        SRPC_STATE_EQ_INIT,
        SRPC_STATE_RUNNING,
        SRPC_STATE_STOPPING,
-} srpc_state_t;
+};
 
 static struct smoketest_rpc {
        spinlock_t       rpc_glock;     /* global lock */
        struct srpc_service     *rpc_services[SRPC_SERVICE_MAX_ID + 1];
        lnet_handle_eq_t rpc_lnet_eq;   /* _the_ LNet event queue */
-       srpc_state_t     rpc_state;
+       enum srpc_state  rpc_state;
        srpc_counters_t  rpc_counters;
        __u64            rpc_matchbits; /* matchbits counter */
 } srpc_data;