Whamcloud - gitweb
b=23267 Make lustre_idl.h include needed definitions from libcfs.
authorRicardo M. Correia <ricardo.correia@oracle.com>
Tue, 17 Aug 2010 17:09:54 +0000 (21:09 +0400)
committerMikhail Pershin <tappro@sun.com>
Fri, 20 Aug 2010 20:02:20 +0000 (00:02 +0400)
i=nathan.rutman
i=mikhail.pershin

It seems that lustre_idl.h uses symbols such as LASSERT, CLASSERT, LPUX64, etc,
but it doesn't include libcfs.h. This was causing a compilation failure in
b_hd_kdmu. The fix is to include libcfs.h.

lustre/include/lustre/lustre_idl.h

index 6a2fd95..28cfc2d 100644 (file)
@@ -91,6 +91,8 @@
 #ifndef _LUSTRE_IDL_H_
 #define _LUSTRE_IDL_H_
 
+#include <libcfs/libcfs.h> /* for LASSERT, LPUX64, etc */
+
 /* Defn's shared with user-space. */
 #include <lustre/lustre_user.h>