Whamcloud - gitweb
b=20339
[fs/lustre-release.git] / libcfs / include / libcfs / linux / libcfs.h
index 44781cb..e1a0502 100644 (file)
@@ -16,8 +16,8 @@
  * in the LICENSE file that accompanied this code).
  *
  * You should have received a copy of the GNU General Public License
- * version 2 along with this program; If not, see [sun.com URL with a
- * copy of GPLv2].
+ * version 2 along with this program; If not, see
+ * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
  *
  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  * CA 95054 USA or visit www.sun.com if you need additional information or
 
 #ifndef __KERNEL__
 #error This include is only for kernel use.
-#endif 
-
-#ifdef HAVE_ASM_TYPES_H
-#include <asm/types.h>
 #endif
 
+
 #include <stdarg.h>
 #include <libcfs/linux/linux-time.h>
 #include <libcfs/linux/linux-mem.h>
@@ -58,6 +55,9 @@
 #include <libcfs/linux/linux-tcpip.h>
 #include <libcfs/linux/kp30.h>
 
+#ifdef HAVE_ASM_TYPES_H
+#include <asm/types.h>
+#endif
 #include <linux/types.h>
 #include <asm/timex.h>
 #include <linux/sched.h> /* THREAD_SIZE */
@@ -117,6 +117,10 @@ typedef kernel_cap_t cfs_kernel_cap_t;
 struct cfs_stack_trace {
 };
 
+/* long integer with size equal to pointer */
+typedef unsigned long ulong_ptr_t;
+typedef long long_ptr_t;
+
 #ifndef WITH_WATCHDOG
 #define WITH_WATCHDOG
 #endif