aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log_priv.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2005-09-08 01:30:05 -0400
committerNathan Scott <nathans@sgi.com>2005-09-08 01:30:05 -0400
commitf016bad6be720496b5582a59738bca00a26f876c (patch)
tree2a99f1eec64972538fc10b13e8076ff4b7c17e0c /fs/xfs/xfs_log_priv.h
parentcaf39e87cc1182f7dae84eefc43ca14d54c78ef9 (diff)
[XFS] Cleanup some -Wundef flag warnings in the endian macros (thanks
Christoph). SGI-PV: 942400 SGI-Modid: xfs-linux-melb:xfs-kern:23771a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log_priv.h')
-rw-r--r--fs/xfs/xfs_log_priv.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h
index eb7fdc6ebc3..a884cea82fc 100644
--- a/fs/xfs/xfs_log_priv.h
+++ b/fs/xfs/xfs_log_priv.h
@@ -112,7 +112,7 @@ struct xfs_mount;
112 * this has endian issues, of course. 112 * this has endian issues, of course.
113 */ 113 */
114 114
115#if __BYTE_ORDER == __LITTLE_ENDIAN 115#ifndef XFS_NATIVE_HOST
116#define GET_CLIENT_ID(i,arch) \ 116#define GET_CLIENT_ID(i,arch) \
117 ((i) & 0xff) 117 ((i) & 0xff)
118#else 118#else
@@ -414,14 +414,10 @@ typedef struct xlog_op_header {
414#define XLOG_FMT_IRIX_BE 3 414#define XLOG_FMT_IRIX_BE 3
415 415
416/* our fmt */ 416/* our fmt */
417#if __BYTE_ORDER == __LITTLE_ENDIAN 417#ifdef XFS_NATIVE_HOST
418#define XLOG_FMT XLOG_FMT_LINUX_LE
419#else
420#if __BYTE_ORDER == __BIG_ENDIAN
421#define XLOG_FMT XLOG_FMT_LINUX_BE 418#define XLOG_FMT XLOG_FMT_LINUX_BE
422#else 419#else
423#error unknown byte order 420#define XLOG_FMT XLOG_FMT_LINUX_LE
424#endif
425#endif 421#endif
426 422
427typedef struct xlog_rec_header { 423typedef struct xlog_rec_header {