From: adilger Date: Thu, 11 Aug 2005 20:03:10 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_7_100~934 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=5f88aa2e493d8056b5233700a430fd77587a31a4;p=fs%2Flustre-release.git Branch HEAD 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. --- diff --git a/lnet/include/libcfs/list.h b/lnet/include/libcfs/list.h index 6eadb45..5520f75 100644 --- a/lnet/include/libcfs/list.h +++ b/lnet/include/libcfs/list.h @@ -285,6 +285,7 @@ static inline void list_splice_init(struct list_head *list, #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) @@ -395,6 +396,7 @@ static inline void hlist_add_head(struct hlist_node *n, struct hlist_head *h) h->first = n; n->pprev = &h->first; } -#endif +#endif /* __KERNEL__ */ +#endif /* HLIST_HEAD */ #endif /* __LIBCFS_LUSTRE_LIST_H__ */