Whamcloud - gitweb
LU-12678 lnet: make "struct lnet_lnd" always "const".
[fs/lustre-release.git] / lnet / klnds / socklnd / socklnd.c
index 2393e01..a9907c5 100644 (file)
@@ -40,7 +40,7 @@
 #include "socklnd.h"
 #include <linux/inetdevice.h>
 
-static struct lnet_lnd the_ksocklnd;
+static const struct lnet_lnd the_ksocklnd;
 struct ksock_nal_data ksocknal_data;
 
 static struct ksock_interface *
@@ -2797,7 +2797,7 @@ static void __exit ksocklnd_exit(void)
        lnet_unregister_lnd(&the_ksocklnd);
 }
 
-static struct lnet_lnd the_ksocklnd = {
+static const struct lnet_lnd the_ksocklnd = {
        .lnd_type               = SOCKLND,
        .lnd_startup            = ksocknal_startup,
        .lnd_shutdown           = ksocknal_shutdown,