From bcef68d99fdb09fe5b55b2f95507e18f63e849ab Mon Sep 17 00:00:00 2001
From: nikita <nikita>
Date: Sat, 18 Oct 2008 17:41:47 +0000
Subject: [PATCH] Liblustre build fixes.

---
 lustre/ChangeLog                   | 4 ++++
 lustre/include/lustre/lustre_idl.h | 5 -----
 lustre/obdclass/lu_time.c          | 1 +
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lustre/ChangeLog b/lustre/ChangeLog
index 6a4604d8cf..66e874bd41 100644
--- a/lustre/ChangeLog
+++ b/lustre/ChangeLog
@@ -1713,6 +1713,10 @@ Bugzilla   : 16450
 Description: Use cdebug_show() in CDEBUG-style macros defined outside of libcfs.
 Details    : Use cdebug_show() in CDEBUG-style macros defined outside of libcfs.
 
+Severity   : normal
+Bugzilla   : 16450
+Description: Liblustre build fixes.
+Details    : Liblustre build fixes.
 
 --------------------------------------------------------------------------------
 
diff --git a/lustre/include/lustre/lustre_idl.h b/lustre/include/lustre/lustre_idl.h
index 43ae1b7699..21bc557862 100644
--- a/lustre/include/lustre/lustre_idl.h
+++ b/lustre/include/lustre/lustre_idl.h
@@ -385,8 +385,6 @@ static inline void fid_be_to_cpu(struct lu_fid *dst, const struct lu_fid *src)
         LASSERTF(fid_is_igif(dst) || fid_ver(dst) == 0, DFID"\n", PFID(dst));
 }
 
-#ifdef __KERNEL__
-
 /**
  * Storage representation for fids.
  *
@@ -402,9 +400,6 @@ void fid_pack(struct lu_fid_pack *pack, const struct lu_fid *fid,
               struct lu_fid *befider);
 int  fid_unpack(const struct lu_fid_pack *pack, struct lu_fid *fid);
 
-/* __KERNEL__ */
-#endif
-
 static inline int fid_is_sane(const struct lu_fid *fid)
 {
         return
diff --git a/lustre/obdclass/lu_time.c b/lustre/obdclass/lu_time.c
index 3751812805..66a8687262 100644
--- a/lustre/obdclass/lu_time.c
+++ b/lustre/obdclass/lu_time.c
@@ -47,6 +47,7 @@
 # define EXPORT_SYMTAB
 #endif
 
+#include <obd_class.h>
 /* OBD_{ALLOC,FREE}_PTR() */
 #include <obd_support.h>
 #include <lprocfs_status.h>
-- 
GitLab