| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH RESEND] xfstests: fix compile error of src/fssum.c on bigendian host |
| From: | Eryu Guan <eguan@xxxxxxxxxx> |
| Date: | Tue, 12 Nov 2013 12:16:53 +0800 |
| Cc: | Eryu Guan <eguan@xxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
Definition of htonll() is needed on bigendian host too, otherwise src/fssum.c won't compile on ppc64/s390x hosts. Acked-by: Dave Chinner <dchinner@xxxxxxxxxx> Reviewed-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx> Signed-off-by: Eryu Guan <eguan@xxxxxxxxxx> --- src/fssum.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fssum.c b/src/fssum.c index c75ff8b..c26d32b 100644 --- a/src/fssum.c +++ b/src/fssum.c @@ -50,6 +50,8 @@ #if __BYTE_ORDER == __LITTLE_ENDIAN #define htonll(x) __bswap_64 (x) +#else +#define htonll(x) (x) #endif #endif -- 1.8.3.1 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 5/5] xfs: increase inode cluster size for v5 filesystems, Eric Sandeen |
|---|---|
| Next by Date: | [PATCH RESEND] xfstests: _filter_mkfs should consume input from stdin first to avoid EPIPE, Eryu Guan |
| Previous by Thread: | test mail for linux-xfs@xxxxxxxxxxx, Chitrangada Chatterjee |
| Next by Thread: | Re: [PATCH RESEND] xfstests: fix compile error of src/fssum.c on bigendian host, Rich Johnston |
| Indexes: | [Date] [Thread] [Top] [All Lists] |