Whamcloud - gitweb
LU-6245 lnet: remove kernel defines in userland headers
[fs/lustre-release.git] / lnet / include / lnet / lib-lnet.h
index 4fe3a86..5676cdb 100644 (file)
 #ifndef __LNET_LIB_LNET_H__
 #define __LNET_LIB_LNET_H__
 
+#ifndef __KERNEL__
+# error This include is only for kernel use.
+#endif
+
 #include <libcfs/libcfs.h>
-#include <lnet/types.h>
+#include <lnet/api.h>
 #include <lnet/lnet.h>
 #include <lnet/lib-types.h>
-#include <lnet/lib-dlc.h>
 
 extern lnet_t  the_lnet;                        /* THE network */