xfstests: fix compile error of src/fssum.c on bigendian host
PATCH 1/1 xfstests: fix compile error of src/fssum.c on bigendian host
Definition of htonll() is needed on bigendian host too, otherwise src/fssum.c won't compile on ppc64/s390x hosts.
Signed-off-by Eryu Guan <[email protected]>
--- src/fssum.c | 2 ++ 1 file changed, 2 insertions(+)
src/fssum.c +2 -0
@@ -50,6 +50,8 @@#if __BYTE_ORDER == __LITTLE_ENDIAN#define htonll (x) __bswap_64 (x) +#else +#define htonll (x) (x)#endif #endif
Signature · 6 lines
1.8.3.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 13 lines · Eryu Guan
Definition of
htonll()is needed on bigendian host too, otherwisesrc/fssum.cwon't compile on ppc64/s390x hosts.Signed-off-by Eryu Guan <[email protected]>--- src/fssum.c | 2 ++ 1 file changed, 2 insertions(+)src/fssum.c +0
-0
src/fssum.c line 56
Quoted 7 lines
src/fssum.c +2
-0@@ -50,6 +50,8 @@#if __BYTE_ORDER == __LITTLE_ENDIAN#define htonll (x) __bswap_64 (x) +#else +#define htonll (x) (x)#endif #endif
Looks fine.
Acked-by Dave Chinner <[email protected]>
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Looks good,
Reviewed-by Carlos Maiolino <[email protected]>
Quoted 28 lines · Eryu Guan
Definition of
htonll()is needed on bigendian host too, otherwisesrc/fssum.cwon't compile on ppc64/s390x hosts.Signed-off-by Eryu Guan <[email protected]>--- src/fssum.c | 2 ++ 1 file changed, 2 insertions(+)src/fssum.c +2
-0@@ -50,6 +50,8 @@#if __BYTE_ORDER == __LITTLE_ENDIAN#define htonll (x) __bswap_64 (x) +#else +#define htonll (x) (x)#endif #endif Signature · 6 lines
1.8.3.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Signature · 6 lines
Carlos _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs