[XFS] Pack some shortform dir2 structures for the ARM old ABI
[pandora-kernel.git] / fs / xfs / linux-2.6 / xfs_linux.h
index aded573..4d45d93 100644 (file)
@@ -300,4 +300,11 @@ 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
+
 #endif /* __XFS_LINUX__ */