staging: lustre: lnet: change lnet_t to proper structure
authorJames Simmons <jsimmons@infradead.org>
Mon, 27 Feb 2017 00:41:46 +0000 (19:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:04 +0000 (09:17 +0100)
Change lnet_t from typedef to proper structure.

Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/20831
Reviewed-by: Olaf Weber <olaf@sgi.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@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/lib-lnet.h
drivers/staging/lustre/include/linux/lnet/lib-types.h
drivers/staging/lustre/lnet/lnet/api-ni.c

index 37b9d66047ef78cc5a34f917592723f522fbc804..4ffe79c83e2276c4940195ee34b8597eb66f805c 100644 (file)
@@ -41,7 +41,7 @@
 #include "lib-types.h"
 #include "lib-dlc.h"
 
-extern lnet_t  the_lnet;       /* THE network */
+extern struct lnet the_lnet;   /* THE network */
 
 #if (BITS_PER_LONG == 32)
 /* 2 CPTs, allowing more CPTs might make us under memory pressure */
index e00bd3833e7500a2fffba80a48a23b683ea637c7..5bf1819b9ee4a382f9f1a45ce00a2b4a3ad7c6ef 100644 (file)
@@ -545,7 +545,7 @@ struct lnet_msg_container {
 #define LNET_RC_STATE_RUNNING          1       /* started up OK */
 #define LNET_RC_STATE_STOPPING         2       /* telling thread to stop */
 
-typedef struct {
+struct lnet {
        /* CPU partition table of LNet */
        struct cfs_cpt_table             *ln_cpt_table;
        /* number of CPTs in ln_cpt_table */
@@ -648,6 +648,6 @@ typedef struct {
         */
        wait_queue_head_t                 ln_rc_waitq;
 
-} lnet_t;
+};
 
 #endif
index c03e70133ca8d62afd12cc700682487d38c7fde2..024b8e31a41d89a831fc7e255262da82dfa055ca 100644 (file)
@@ -39,7 +39,7 @@
 
 #define D_LNI D_CONSOLE
 
-lnet_t the_lnet;                          /* THE state of the network */
+struct lnet the_lnet;          /* THE state of the network */
 EXPORT_SYMBOL(the_lnet);
 
 static char *ip2nets = "";