From: Eric Sandeen Date: Wed, 29 Oct 2014 05:33:15 +0000 (+1100) Subject: libxfs: fix harmless sparse endian nit X-Git-Tag: v3.2.2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=167d49cb17004fe1ce6382c8bb4722353917233e;p=thirdparty%2Fxfsprogs-dev.git libxfs: fix harmless sparse endian nit h_crc is __le32 but cpu_to_be32() is... __be32. So sparse complains, even though it's harmless. Although sparse is smart about bare 0s, and we could drop the swap, other places explicitly swap to keep things clear (I guess?) so "swap" the 0 with the proper routine. Signed-off-by: Eric Sandeen Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c index 80de6fa17..7d7347769 100644 --- a/libxfs/rdwr.c +++ b/libxfs/rdwr.c @@ -187,7 +187,7 @@ libxfs_log_header( head->h_len = cpu_to_be32(sunit - BBSIZE); else head->h_len = cpu_to_be32(20); - head->h_crc = cpu_to_be32(0); + head->h_crc = cpu_to_le32(0); head->h_prev_block = cpu_to_be32(-1); head->h_num_logops = cpu_to_be32(1); head->h_cycle_data[0] = cpu_to_be32(0xb0c0d0d0);