[Ocfs2-commits] zab commits r2510 - in branches/endian-safe: .
kapi-compat/include
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Aug 12 11:31:02 CDT 2005
Author: zab
Date: 2005-08-12 11:30:59 -0500 (Fri, 12 Aug 2005)
New Revision: 2510
Added:
branches/endian-safe/kapi-compat/include/sparse_endian_types.h
Modified:
branches/endian-safe/Config.make.in
branches/endian-safe/configure.in
Log:
o add compat wrappers for the sparse endianness types for sles9
Modified: branches/endian-safe/Config.make.in
===================================================================
--- branches/endian-safe/Config.make.in 2005-08-12 02:12:49 UTC (rev 2509)
+++ branches/endian-safe/Config.make.in 2005-08-12 16:30:59 UTC (rev 2510)
@@ -55,6 +55,7 @@
BACKING_DEV_CAPABILITIES = @BACKING_DEV_CAPABILITIES@
IDR_GET_NEW_RETURNS_ID = @IDR_GET_NEW_RETURNS_ID@
INET_SK_RETURNS_INET_OPT = @INET_SK_RETURNS_INET_OPT@
+HAVE_SPARSE_ENDIAN_TYPES = @HAVE_SPARSE_ENDIAN_TYPES@
OCFS_DEBUG = @OCFS_DEBUG@
Modified: branches/endian-safe/configure.in
===================================================================
--- branches/endian-safe/configure.in 2005-08-12 02:12:49 UTC (rev 2509)
+++ branches/endian-safe/configure.in 2005-08-12 16:30:59 UTC (rev 2510)
@@ -227,6 +227,11 @@
[kref_init.*release])
KAPI_COMPAT_HEADERS="$KAPI_COMPAT_HEADERS $kref_compat_header"
+kref_compat_header=""
+OCFS2_CHECK_KERNEL([sparse endian types], types.h,
+ , kref_compat_header="sparse_endian_types.h", [__bitwise __be32])
+KAPI_COMPAT_HEADERS="$KAPI_COMPAT_HEADERS $kref_compat_header"
+
JOURNAL_ACCESS_WITH_CREDITS=
OCFS2_CHECK_KERNEL([journal access functions with a credits pointer], jbd.h,
JOURNAL_ACCESS_WITH_CREDITS=yes, , [\<int \*credits);])
Added: branches/endian-safe/kapi-compat/include/sparse_endian_types.h
===================================================================
--- branches/endian-safe/kapi-compat/include/sparse_endian_types.h 2005-08-12 02:12:49 UTC (rev 2509)
+++ branches/endian-safe/kapi-compat/include/sparse_endian_types.h 2005-08-12 16:30:59 UTC (rev 2510)
@@ -0,0 +1,13 @@
+#ifndef KAPI_SPARSE_ENDIAN_TYPES_H
+#define KAPI_SPARSE_ENDIAN_TYPES_H
+
+#include <linux/types.h>
+
+typedef __u16 __le16;
+typedef __u16 __be16;
+typedef __u32 __le32;
+typedef __u32 __be32;
+typedef __u64 __le64;
+typedef __u64 __be64;
+
+#endif /* KAPI_SPARSE_ENDIAN_TYPES_H */
More information about the Ocfs2-commits
mailing list