Whamcloud - gitweb
LU-8078 iokit: correct obdfilter-survey output data format
[fs/lustre-release.git] / lnet / lnet / router_proc.c
index cc87c28..f58fc27 100644 (file)
@@ -3,8 +3,7 @@
  *
  * Copyright (c) 2011, 2013, Intel Corporation.
  *
- *   This file is part of Portals
- *   http://sourceforge.net/projects/sandiaportals/
+ *   This file is part of Lustre, https://wiki.hpdd.intel.com/
  *
  *   Portals is free software; you can redistribute it and/or
  *   modify it under the terms of version 2 of the GNU General Public
@@ -25,8 +24,6 @@
 #include <libcfs/libcfs.h>
 #include <lnet/lib-lnet.h>
 
-#if defined(__KERNEL__) && defined(LNET_ROUTER)
-
 /* This is really lnet_proc.c. You might need to update sanity test 215
  * if any file format is changed. */
 
@@ -225,7 +222,7 @@ proc_lnet_routes(struct ctl_table *table, int write, void __user *buffer,
 
                 if (route != NULL) {
                        __u32        net        = rnet->lrn_net;
-                       unsigned int hops       = route->lr_hops;
+                       __u32 hops              = route->lr_hops;
                        unsigned int priority   = route->lr_priority;
                        lnet_nid_t   nid        = route->lr_gateway->lp_nid;
                        int          alive      = lnet_is_route_alive(route);
@@ -941,17 +938,3 @@ lnet_proc_fini(void)
        lnet_table_header = NULL;
 #endif
 }
-
-#else
-
-void
-lnet_proc_init(void)
-{
-}
-
-void
-lnet_proc_fini(void)
-{
-}
-
-#endif