summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_linux.h
diff options
context:
space:
mode:
authorChristoph Hellwig2016-07-20 03:48:46 +0200
committerDave Chinner2016-07-20 03:48:46 +0200
commitaa2dd0ad4d6d7dd85bb13ed64b872803be046f96 (patch)
tree18f0ee6ce0117ed398da2f126d5fee759097d519 /fs/xfs/xfs_linux.h
parentxfs: kill xfs_dir2_inou_t (diff)
downloadkernel-qcow2-linux-aa2dd0ad4d6d7dd85bb13ed64b872803be046f96.tar.gz
kernel-qcow2-linux-aa2dd0ad4d6d7dd85bb13ed64b872803be046f96.tar.xz
kernel-qcow2-linux-aa2dd0ad4d6d7dd85bb13ed64b872803be046f96.zip
xfs: remove __arch_pack
Instead we always declare struct xfs_dir2_sf_hdr as packed. That's the expected layout, and while most major architectures do the packing by default the new structure size and offset checker showed that not only the ARM old ABI got this wrong, but various minor embedded architectures did as well. [Verified that no code change on x86-64 results from this change] Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_linux.h')
-rw-r--r--fs/xfs/xfs_linux.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/xfs/xfs_linux.h b/fs/xfs/xfs_linux.h
index a8192dc797dc..b8d64d520e12 100644
--- a/fs/xfs/xfs_linux.h
+++ b/fs/xfs/xfs_linux.h
@@ -328,13 +328,6 @@ static inline __uint64_t howmany_64(__uint64_t x, __uint32_t y)
return x;
}
-/* ARM old ABI has some weird alignment/padding */
-#if defined(__arm__) && !defined(__ARM_EABI__)
-#define __arch_pack __attribute__((packed))
-#else
-#define __arch_pack
-#endif
-
#define ASSERT_ALWAYS(expr) \
(unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))