Disable hlist macros unless compiling liblustre. In b1_4 there are compat
macros in lustre_compat25.h that handle difference between 2.4 and 2.6
kernels instead of defining replacement macros.
#endif
/* hlist stuff */
+#ifndef __KERNEL__
#define HLIST_HEAD_INIT { .first = NULL }
#define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
#define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
h->first = n;
n->pprev = &h->first;
}
-#endif
+#endif /* __KERNEL__ */
+#endif /* HLIST_HEAD */
#endif /* __LIBCFS_LUSTRE_LIST_H__ */