Whamcloud - gitweb
LU-2675 lnet: add lnet/nidstr.h 06/11506/6
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 14 Aug 2014 19:17:28 +0000 (14:17 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 6 Sep 2014 15:26:38 +0000 (15:26 +0000)
Add lnet/include/lnet/nidstr.h to break the include loop between
libcfs/libcfs.h and lnet/types.h. Where possible include lnet/types.h
or lnet/nidstr.h rather than lnet/lnet.h. Remove the unneccessary
headers lnet/{,darwin/,linux/}api-support.h.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ide4cd79295eba8705c0d413449cbb812343cbec9
Reviewed-on: http://review.whamcloud.com/11506
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Amir Shehata <amir.shehata@intel.com>
Reviewed-by: Isaac Huang <he.huang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
34 files changed:
libcfs/include/libcfs/libcfs_private.h
libcfs/include/libcfs/lucache.h
libcfs/libcfs/linux/linux-utils.c
libcfs/libcfs/module.c
libcfs/libcfs/nidstrings.c
libcfs/libcfs/upcall_cache.c
libcfs/libcfs/util/l_ioctl.c
lnet/include/lnet/Makefile.am
lnet/include/lnet/api-support.h [deleted file]
lnet/include/lnet/linux/Makefile.am
lnet/include/lnet/linux/api-support.h [deleted file]
lnet/include/lnet/lnet.h
lnet/include/lnet/lnetst.h
lnet/include/lnet/nidstr.h [new file with mode: 0644]
lnet/include/lnet/types.h
lnet/utils/Makefile.am
lnet/utils/debug.c
lnet/utils/lst.c
lnet/utils/portals.c
lnet/utils/wirecheck.c
lustre/include/lustre/lustre_idl.h
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_lproc.c
lustre/nodemap/nodemap_handler.c
lustre/utils/gss/l_idmap.c
lustre/utils/gss/lsupport.c
lustre/utils/gss/lsupport.h
lustre/utils/l_getidentity.c
lustre/utils/llog_reader.c
lustre/utils/loadgen.c
lustre/utils/lustre_cfg.c
lustre/utils/mkfs_lustre.c
lustre/utils/mount_lustre.c
lustre/utils/obd.c

index 0673b40..6f7953c 100644 (file)
@@ -42,9 +42,6 @@
 #ifndef __LIBCFS_PRIVATE_H__
 #define __LIBCFS_PRIVATE_H__
 
 #ifndef __LIBCFS_PRIVATE_H__
 #define __LIBCFS_PRIVATE_H__
 
-/* XXX this layering violation is for nidstrings */
-#include <lnet/types.h>
-
 #ifndef DEBUG_SUBSYSTEM
 # define DEBUG_SUBSYSTEM S_UNDEFINED
 #endif
 #ifndef DEBUG_SUBSYSTEM
 # define DEBUG_SUBSYSTEM S_UNDEFINED
 #endif
@@ -530,45 +527,6 @@ int cfs_percpt_atomic_summary(atomic_t **refs);
  */
 #define CLASSERT(cond) do {switch (1) {case (cond): case 0: break; } } while (0)
 
  */
 #define CLASSERT(cond) do {switch (1) {case (cond): case 0: break; } } while (0)
 
-/* support decl needed both by kernel and liblustre */
-int             libcfs_isknown_lnd(int type);
-char           *libcfs_lnd2modname(int type);
-char           *libcfs_lnd2str(int type);
-int             libcfs_str2lnd(const char *str);
-char           *libcfs_net2str(__u32 net);
-char           *libcfs_nid2str(lnet_nid_t nid);
-__u32           libcfs_str2net(const char *str);
-lnet_nid_t      libcfs_str2nid(const char *str);
-int             libcfs_str2anynid(lnet_nid_t *nid, const char *str);
-char           *libcfs_id2str(lnet_process_id_t id);
-void            cfs_free_nidlist(struct list_head *list);
-int             cfs_parse_nidlist(char *str, int len, struct list_head *list);
-int             cfs_print_nidlist(char *buffer, int count,
-                                  struct list_head *list);
-int             cfs_match_nid(lnet_nid_t nid, struct list_head *list);
-bool            cfs_nidrange_is_contiguous(struct list_head *nidlist);
-void            cfs_nidrange_find_min_max(struct list_head *nidlist,
-                                          char *min_nid, char *max_nid,
-                                          int nidstr_length);
-
-/** \addtogroup lnet_addr
- * @{ */
-/* how an LNET NID encodes net:address */
-/** extract the address part of an lnet_nid_t */
-#define LNET_NIDADDR(nid)      ((__u32)((nid) & 0xffffffff))
-/** extract the network part of an lnet_nid_t */
-#define LNET_NIDNET(nid)       ((__u32)(((nid) >> 32)) & 0xffffffff)
-/** make an lnet_nid_t from a network part and an address part */
-#define LNET_MKNID(net,addr)   ((((__u64)(net))<<32)|((__u64)(addr)))
-/* how net encodes type:number */
-#define LNET_NETNUM(net)       ((net) & 0xffff)
-#define LNET_NETTYP(net)       (((net) >> 16) & 0xffff)
-#define LNET_MKNET(typ,num)    ((((__u32)(typ))<<16)|((__u32)(num)))
-/** @} lnet_addr */
-
-/* max value for numeric network address */
-#define MAX_NUMERIC_VALUE 0xffffffff
-
 /* implication */
 #define ergo(a, b) (!(a) || (b))
 /* logical equivalence */
 /* implication */
 #define ergo(a, b) (!(a) || (b))
 /* logical equivalence */
index 4a5cbeb..990ed79 100644 (file)
@@ -38,6 +38,7 @@
 #define _LUCACHE_H
 
 #include <libcfs/libcfs.h>
 #define _LUCACHE_H
 
 #include <libcfs/libcfs.h>
+#include <lnet/types.h>
 
 /** \defgroup ucache ucache
  *
 
 /** \defgroup ucache ucache
  *
index c76046d..c9ca655 100644 (file)
@@ -41,7 +41,6 @@
  */
 #define DEBUG_SUBSYSTEM S_LNET
 #include <libcfs/libcfs.h>
  */
 #define DEBUG_SUBSYSTEM S_LNET
 #include <libcfs/libcfs.h>
-#include <lnet/lnet.h>
 
 /*
  * Convert server error code to client format. Error codes are from
 
 /*
  * Convert server error code to client format. Error codes are from
index 16d0a16..7621023 100644 (file)
@@ -43,6 +43,7 @@
 #include <lnet/lib-lnet.h>
 #include <lnet/lib-dlc.h>
 #include <lnet/lnet.h>
 #include <lnet/lib-lnet.h>
 #include <lnet/lib-dlc.h>
 #include <lnet/lnet.h>
+#include <lnet/nidstr.h>
 #include "tracefile.h"
 
 void
 #include "tracefile.h"
 
 void
index d5830f3..10e8f8d 100644 (file)
 #define DEBUG_SUBSYSTEM S_LNET
 
 #include <libcfs/libcfs.h>
 #define DEBUG_SUBSYSTEM S_LNET
 
 #include <libcfs/libcfs.h>
-#include <lnet/lnet.h>
+#include <lnet/nidstr.h>
 #ifndef __KERNEL__
 #ifdef HAVE_GETHOSTBYNAME
 # include <netdb.h>
 #endif
 #endif
 
 #ifndef __KERNEL__
 #ifdef HAVE_GETHOSTBYNAME
 # include <netdb.h>
 #endif
 #endif
 
+/* max value for numeric network address */
+#define MAX_NUMERIC_VALUE 0xffffffff
+
 #define IPSTRING_LENGTH 16
 
 /* CAVEAT VENDITOR! Keep the canonical string representation of nets/nids
 #define IPSTRING_LENGTH 16
 
 /* CAVEAT VENDITOR! Keep the canonical string representation of nets/nids
index 34bc7df..c794eb6 100644 (file)
@@ -40,6 +40,7 @@
 #define DEBUG_SUBSYSTEM S_SEC
 
 #include <libcfs/lucache.h>
 #define DEBUG_SUBSYSTEM S_SEC
 
 #include <libcfs/lucache.h>
+#include <lnet/types.h>
 
 static struct upcall_cache_entry *alloc_entry(struct upcall_cache *cache,
                                               __u64 key, void *args)
 
 static struct upcall_cache_entry *alloc_entry(struct upcall_cache *cache,
                                               __u64 key, void *args)
index 9dcf1db..e27c404 100644 (file)
@@ -21,7 +21,6 @@
 #define __USE_FILE_OFFSET64
 
 #include <libcfs/libcfsutil.h>
 #define __USE_FILE_OFFSET64
 
 #include <libcfs/libcfsutil.h>
-#include <lnet/api-support.h>
 #include <lnet/lnetctl.h>
 
 static ioc_handler_t  do_ioctl;                 /* forward ref */
 #include <lnet/lnetctl.h>
 
 static ioc_handler_t  do_ioctl;                 /* forward ref */
index e40e743..1a34a9f 100644 (file)
@@ -3,6 +3,14 @@ lnetdir=$(includedir)/lnet
 SUBDIRS = linux
 DIST_SUBDIRS = linux
 
 SUBDIRS = linux
 DIST_SUBDIRS = linux
 
-EXTRA_DIST = api.h api-support.h \
-       lib-dlc.h lib-lnet.h lib-types.h lnet.h lnetctl.h types.h \
-       socklnd.h lnetst.h
+EXTRA_DIST = \
+       api.h \
+       lib-dlc.h \
+       lib-lnet.h \
+       lib-types.h \
+       lnet.h \
+       lnetctl.h \
+       lnetst.h \
+       nidstr.h \
+       socklnd.h \
+       types.h
diff --git a/lnet/include/lnet/api-support.h b/lnet/include/lnet/api-support.h
deleted file mode 100644 (file)
index bdd4ff0..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * GPL HEADER START
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 only,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License version 2 for more details (a copy is included
- * in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU General Public License
- * version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- *
- * GPL HEADER END
- */
-/*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
- * Use is subject to license terms.
- */
-/*
- * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
- */
-
-#ifndef __LNET_API_SUPPORT_H__
-#define __LNET_API_SUPPORT_H__
-
-#include <lnet/linux/api-support.h>
-
-#include <libcfs/libcfs.h>
-#include <lnet/types.h>
-#include <lnet/lnet.h>
-
-#endif
index 29df720..7efb58d 100644 (file)
@@ -1 +1 @@
-EXTRA_DIST = lib-lnet.h  lib-types.h  lnet.h api-support.h
+EXTRA_DIST = lib-lnet.h lib-types.h lnet.h
diff --git a/lnet/include/lnet/linux/api-support.h b/lnet/include/lnet/linux/api-support.h
deleted file mode 100644 (file)
index e5b71e9..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * GPL HEADER START
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 only,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License version 2 for more details (a copy is included
- * in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU General Public License
- * version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- *
- * GPL HEADER END
- */
-/*
- * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
- * Use is subject to license terms.
- */
-/*
- * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
- */
-
-#ifndef __LINUX_API_SUPPORT_H__
-#define __LINUX_API_SUPPORT_H__
-
-#ifndef __LNET_API_SUPPORT_H__
-#error Do not #include this file directly. #include <lnet /api-support.h> instead
-#endif
-
-#ifndef __KERNEL__
-# include <stdio.h>
-# include <stdlib.h>
-# include <unistd.h>
-# include <time.h>
-
-/* Lots of POSIX dependencies to support PtlEQWait_timeout */
-# include <signal.h>
-# include <setjmp.h>
-# include <time.h>
-
-#ifdef HAVE_LIBREADLINE
-#define READLINE_LIBRARY
-#include <readline/readline.h>
-
-/* readline.h pulls in a #define that conflicts with one in libcfs.h */
-#undef RETURN
-
-/* completion_matches() is #if 0-ed out in modern glibc */
-#ifndef completion_matches
-#  define completion_matches rl_completion_matches
-#endif
-
-#endif /* HAVE_LIBREADLINE */
-
-extern void using_history(void);
-extern void stifle_history(int);
-extern void add_history(char *);
-
-#endif /* !__KERNEL__ */
-
-#endif
index 85eb9d6..6b86a22 100644 (file)
@@ -44,8 +44,6 @@
 
 #include <lnet/types.h>
 #include <lnet/api.h>
 
 #include <lnet/types.h>
 #include <lnet/api.h>
-
-#define LNET_NIDSTR_COUNT  1024    /* # of nidstrings */
-#define LNET_NIDSTR_SIZE   32      /* size of each one (see below for usage) */
+#include <lnet/nidstr.h>
 
 #endif
 
 #endif
index 4d53849..803cfef 100644 (file)
@@ -42,7 +42,6 @@
 #define __LNET_ST_H__
 
 #include <libcfs/libcfs.h>
 #define __LNET_ST_H__
 
 #include <libcfs/libcfs.h>
-#include <lnet/lnet.h>
 #include <lnet/lib-types.h>
 
 #define LST_FEAT_NONE          (0)
 #include <lnet/lib-types.h>
 
 #define LST_FEAT_NONE          (0)
diff --git a/lnet/include/lnet/nidstr.h b/lnet/include/lnet/nidstr.h
new file mode 100644 (file)
index 0000000..d2ab743
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef _LNET_NIDSTRINGS_H
+#define _LNET_NIDSTRINGS_H
+#include <lnet/types.h>
+
+struct list_head;
+
+#define LNET_NIDSTR_COUNT  1024    /* # of nidstrings */
+#define LNET_NIDSTR_SIZE   32      /* size of each one (see below for usage) */
+
+/* support decl needed both by kernel and liblustre */
+int libcfs_isknown_lnd(int type);
+char *libcfs_lnd2modname(int type);
+char *libcfs_lnd2str(int type);
+int libcfs_str2lnd(const char *str);
+char *libcfs_net2str(__u32 net);
+char *libcfs_nid2str(lnet_nid_t nid);
+__u32 libcfs_str2net(const char *str);
+lnet_nid_t libcfs_str2nid(const char *str);
+int libcfs_str2anynid(lnet_nid_t *nid, const char *str);
+char *libcfs_id2str(lnet_process_id_t id);
+void cfs_free_nidlist(struct list_head *list);
+int cfs_parse_nidlist(char *str, int len, struct list_head *list);
+int cfs_print_nidlist(char *buffer, int count, struct list_head *list);
+int cfs_match_nid(lnet_nid_t nid, struct list_head *list);
+bool cfs_nidrange_is_contiguous(struct list_head *nidlist);
+void cfs_nidrange_find_min_max(struct list_head *nidlist, char *min_nid,
+                              char *max_nid, int nidstr_length);
+
+#endif /* _LNET_NIDSTRINGS_H */
index 2982801..997fbc1 100644 (file)
@@ -40,7 +40,7 @@
 /** \addtogroup lnet
  * @{ */
 
 /** \addtogroup lnet
  * @{ */
 
-#include <libcfs/libcfs.h>
+#include <libcfs/types.h>
 
 /** \addtogroup lnet_addr
  * @{ */
 
 /** \addtogroup lnet_addr
  * @{ */
@@ -77,6 +77,39 @@ typedef __u32 lnet_pid_t;
 
 #define LNET_TIME_FOREVER    (-1)
 
 
 #define LNET_TIME_FOREVER    (-1)
 
+/* how an LNET NID encodes net:address */
+/** extract the address part of an lnet_nid_t */
+
+static inline __u32 LNET_NIDADDR(lnet_nid_t nid)
+{
+       return nid & 0xffffffff;
+}
+
+static inline __u32 LNET_NIDNET(lnet_nid_t nid)
+{
+       return (nid >> 32) & 0xffffffff;
+}
+
+static inline lnet_nid_t LNET_MKNID(__u32 net, __u32 addr)
+{
+       return (((__u64)net) << 32) | addr;
+}
+
+static inline __u32 LNET_NETNUM(__u32 net)
+{
+       return net & 0xffff;
+}
+
+static inline __u32 LNET_NETTYP(__u32 net)
+{
+       return (net >> 16) & 0xffff;
+}
+
+static inline __u32 LNET_MKNET(__u32 type, __u32 num)
+{
+       return (type << 16) | num;
+}
+
 /**
  * Objects maintained by the LNet are accessed through handles. Handle types
  * have names of the form lnet_handle_xx_t, where xx is one of the two letter
 /**
  * Objects maintained by the LNet are accessed through handles. Handle types
  * have names of the form lnet_handle_xx_t, where xx is one of the two letter
index dd7b9e4..8ff8cca 100644 (file)
@@ -38,6 +38,8 @@
 #COMPILE = $(CC) -Wall -g -I$(srcdir)/../include -I../../include
 #LINK = $(CC) -o $@
 
 #COMPILE = $(CC) -Wall -g -I$(srcdir)/../include -I../../include
 #LINK = $(CC) -o $@
 
+AM_CFLAGS = $(LLCFLAGS)
+
 LIBCFS= $(top_builddir)/libcfs/libcfs/libcfs.a
 LIBCFSUTIL= $(top_builddir)/libcfs/libcfs/libcfsutil.a
 
 LIBCFS= $(top_builddir)/libcfs/libcfs/libcfs.a
 LIBCFSUTIL= $(top_builddir)/libcfs/libcfs/libcfsutil.a
 
index e1dd37b..40de598 100644 (file)
@@ -728,10 +728,12 @@ int jt_dbg_clear_debug_buf(int argc, char **argv)
 int jt_dbg_mark_debug_buf(int argc, char **argv)
 {
        static char scratch[MAX_MARK_SIZE] = "";
 int jt_dbg_mark_debug_buf(int argc, char **argv)
 {
        static char scratch[MAX_MARK_SIZE] = "";
-       struct libcfs_ioctl_data data = { 0 };
+       struct libcfs_ioctl_data data;
        char *text;
        int rc;
 
        char *text;
        int rc;
 
+       memset(&data, 0, sizeof(data));
+
        if (argc > 1) {
                int count, max_size = sizeof(scratch) - 1;
 
        if (argc > 1) {
                int count, max_size = sizeof(scratch) - 1;
 
index 64d1f3f..044cbcd 100644 (file)
  * Author: Liang Zhen <liangzhen@clusterfs.com>
  */
 
  * Author: Liang Zhen <liangzhen@clusterfs.com>
  */
 
-#define _GNU_SOURCE
-
 #include <libcfs/libcfsutil.h>
 #include <lnet/lnetctl.h>
 #include <lnet/lnetst.h>
 #include <libcfs/libcfsutil.h>
 #include <lnet/lnetctl.h>
 #include <lnet/lnetst.h>
+#include <lnet/nidstr.h>
 /* NB: these includes are layering violation */
 #include <lustre_ver.h>
 #include <lustre/lustre_idl.h>
 /* NB: these includes are layering violation */
 #include <lustre_ver.h>
 #include <lustre/lustre_idl.h>
index 42d2f67..fcfb91b 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 #include <libcfs/libcfsutil.h>
  */
 
 #include <libcfs/libcfsutil.h>
-#include <lnet/api-support.h>
+#include <lnet/nidstr.h>
 #include <lnet/lnetctl.h>
 #include <lnet/socklnd.h>
 #include <lnet/lib-dlc.h>
 #include <lnet/lnetctl.h>
 #include <lnet/socklnd.h>
 #include <lnet/lib-dlc.h>
index 95d2aa6..8273a84 100644 (file)
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/types.h>
 #include <sys/wait.h>
-#include <lnet/lib-lnet.h>
+#include <lnet/lib-types.h>
 
 #include <string.h>
 
 
 #include <string.h>
 
index 016e665..6a311e4 100644 (file)
@@ -92,6 +92,7 @@
 #define _LUSTRE_IDL_H_
 
 #include <libcfs/libcfs.h> /* for LPUX64, etc */
 #define _LUSTRE_IDL_H_
 
 #include <libcfs/libcfs.h> /* for LPUX64, etc */
+#include <lnet/types.h>
 #include <lustre/lustre_user.h> /* Defn's shared with user-space. */
 #include <lustre/lustre_errno.h>
 #include <lustre_ver.h>
 #include <lustre/lustre_user.h> /* Defn's shared with user-space. */
 #include <lustre/lustre_errno.h>
 #include <lustre_ver.h>
index 30fcaf0..2a8e2fd 100644 (file)
@@ -49,8 +49,7 @@
 #define DEBUG_SUBSYSTEM S_MDS
 
 #include "mdt_internal.h"
 #define DEBUG_SUBSYSTEM S_MDS
 
 #include "mdt_internal.h"
-#include <lnet/lib-lnet.h>
-
+#include <lnet/nidstr.h>
 
 typedef enum ucred_init_type {
         NONE_INIT       = 0,
 
 typedef enum ucred_init_type {
         NONE_INIT       = 0,
index 7a5936c..f8d0c0a 100644 (file)
@@ -45,7 +45,7 @@
 #include <asm/statfs.h>
 
 #include <linux/module.h>
 #include <asm/statfs.h>
 
 #include <linux/module.h>
-
+#include <lnet/nidstr.h>
 /* LUSTRE_VERSION_CODE */
 #include <lustre_ver.h>
 /*
 /* LUSTRE_VERSION_CODE */
 #include <lustre_ver.h>
 /*
@@ -61,7 +61,6 @@
 #include <lustre_mds.h>
 #include <lprocfs_status.h>
 #include "mdt_internal.h"
 #include <lustre_mds.h>
 #include <lprocfs_status.h>
 #include "mdt_internal.h"
-#include <lnet/lib-lnet.h>
 
 /**
  * The rename stats output would be YAML formats, like
 
 /**
  * The rename stats output would be YAML formats, like
index 1f68532..6c04f65 100644 (file)
@@ -24,6 +24,7 @@
  * Author: Joshua Walgenbach <jjw@iu.edu>
  */
 #include <linux/module.h>
  * Author: Joshua Walgenbach <jjw@iu.edu>
  */
 #include <linux/module.h>
+#include <lnet/nidstr.h>
 #include <lustre_net.h>
 #include "nodemap_internal.h"
 
 #include <lustre_net.h>
 #include "nodemap_internal.h"
 
index 663520b..cde42b4 100644 (file)
@@ -3,7 +3,7 @@
 #include <stdio.h>
 /* For basename() */
 #include <libgen.h>
 #include <stdio.h>
 /* For basename() */
 #include <libgen.h>
-
+#include <lnet/nidstr.h>
 #include "lsupport.h"
 
 int main(int argc, char **argv)
 #include "lsupport.h"
 
 int main(int argc, char **argv)
index 2fa31de..4dc6a68 100644 (file)
@@ -60,7 +60,7 @@
 #ifdef HAVE_GETHOSTBYNAME
 # include <netdb.h>
 #endif
 #ifdef HAVE_GETHOSTBYNAME
 # include <netdb.h>
 #endif
-
+#include <lnet/nidstr.h>
 #ifdef _NEW_BUILD_
 # include "lgss_utils.h"
 #else
 #ifdef _NEW_BUILD_
 # include "lgss_utils.h"
 #else
index 576cefa..11005e3 100644 (file)
@@ -40,6 +40,7 @@
 #include <stdint.h>
 
 #include <libcfs/libcfs.h>
 #include <stdint.h>
 
 #include <libcfs/libcfs.h>
+#include <lnet/types.h>
 
 #define GSSD_CLI        (0)
 #define GSSD_SVC        (1)
 
 #define GSSD_CLI        (0)
 #define GSSD_SVC        (1)
index 307cf3f..c4e07cd 100644 (file)
@@ -49,6 +49,7 @@
 #include <syslog.h>
 
 #include <libcfs/libcfs.h>
 #include <syslog.h>
 
 #include <libcfs/libcfs.h>
+#include <lnet/nidstr.h>
 #include <lustre/lustre_user.h>
 #include <lustre/lustre_idl.h>
 
 #include <lustre/lustre_user.h>
 #include <lustre/lustre_idl.h>
 
index 2a1903b..a0d0b3a 100644 (file)
@@ -44,6 +44,7 @@
 
 #include <time.h>
 #include <libcfs/libcfs.h>
 
 #include <time.h>
 #include <libcfs/libcfs.h>
+#include <lnet/nidstr.h>
 #include <lustre/lustre_idl.h>
 #include <lustre_cfg.h>
 
 #include <lustre/lustre_idl.h>
 #include <lustre_cfg.h>
 
index fbc145e..494c5ed 100644 (file)
@@ -58,6 +58,7 @@
 #include <sys/time.h>
 
 #include <lnet/lnetctl.h>
 #include <sys/time.h>
 
 #include <lnet/lnetctl.h>
+#include <lnet/nidstr.h>
 #include <libcfs/libcfsutil.h>
 #include <lustre_ioctl.h>
 #include "obdctl.h"
 #include <libcfs/libcfsutil.h>
 #include <lustre_ioctl.h>
 #include "obdctl.h"
index 29b3ae1..7a6790b 100644 (file)
@@ -50,6 +50,7 @@
 #include <glob.h>
 
 #include <libcfs/libcfs.h>
 #include <glob.h>
 
 #include <libcfs/libcfs.h>
+#include <lnet/nidstr.h>
 #include <lustre_cfg.h>
 #include <lustre/lustre_idl.h>
 #include <lustre/lustre_build_version.h>
 #include <lustre_cfg.h>
 #include <lustre/lustre_idl.h>
 #include <lustre/lustre_build_version.h>
index 5310276..e585e8d 100644 (file)
@@ -64,7 +64,7 @@
 #include <getopt.h>
 #include <limits.h>
 #include <ctype.h>
 #include <getopt.h>
 #include <limits.h>
 #include <ctype.h>
-
+#include <lnet/nidstr.h>
 #include <lustre_disk.h>
 #include <lustre_param.h>
 #include <lnet/lnetctl.h>
 #include <lustre_disk.h>
 #include <lustre_param.h>
 #include <lnet/lnetctl.h>
index 64da5e5..8e9b00a 100644 (file)
@@ -53,6 +53,7 @@
 #include <lustre_ver.h>
 #include <ctype.h>
 #include <limits.h>
 #include <lustre_ver.h>
 #include <ctype.h>
 #include <limits.h>
+#include <lnet/nidstr.h>
 #include <lustre/lustre_idl.h>
 #if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 10, 53, 0)
 /*
 #include <lustre/lustre_idl.h>
 #if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 10, 53, 0)
 /*
index 235e785..76fba40 100644 (file)
@@ -64,7 +64,7 @@
 
 #include "obdctl.h"
 #include <libcfs/libcfs.h>
 
 #include "obdctl.h"
 #include <libcfs/libcfs.h>
-#include <lnet/lnet.h>
+#include <lnet/nidstr.h>
 #include <lustre/lustre_idl.h>
 #include <lustre_cfg.h>
 #include <lustre_ioctl.h>
 #include <lustre/lustre_idl.h>
 #include <lustre_cfg.h>
 #include <lustre_ioctl.h>