1 From ae6603206176b771c9ed1f82569f68fc1257f014 Mon Sep 17 00:00:00 2001
2 From: Theodore Ts'o <tytso@mit.edu>
3 Date: Wed, 3 Jan 2018 01:32:02 -0500
4 Subject: [PATCH] libext2fs: fix build failure in swapfs.c on big-endian
7 Addresses-Debian-Bug: #886119
9 Reported-by: James Clarke <jrtc27@debian.org>
10 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
12 Upstream-Status: Backport
14 lib/ext2fs/swapfs.c | 3 ++-
15 1 file changed, 2 insertions(+), 1 deletion(-)
17 diff --git a/lib/ext2fs/swapfs.c b/lib/ext2fs/swapfs.c
18 index 6e5cff97..b13dc422 100644
19 --- a/lib/ext2fs/swapfs.c
20 +++ b/lib/ext2fs/swapfs.c
26 #include <ext2fs/ext2_ext_attr.h>
28 #ifdef WORDS_BIGENDIAN
29 @@ -358,7 +359,7 @@ void ext2fs_swap_inode_full(ext2_filsys fs, struct ext2_inode_large *t,
30 if (inode_includes(inode_size, i_projid))
31 t->i_projid = ext2fs_swab16(f->i_projid);
32 /* catch new static fields added after i_projid */
33 - EXT2FS_BUILD_BUG_ON(sizeof(ext2_inode_large) != 160);
34 + EXT2FS_BUILD_BUG_ON(sizeof(struct ext2_inode_large) != 160);
36 i = sizeof(struct ext2_inode) + extra_isize + sizeof(__u32);
37 if (bufsize < (int) i)