Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 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 |
| 5 | systems |
| 6 | |
| 7 | Addresses-Debian-Bug: #886119 |
| 8 | |
| 9 | Reported-by: James Clarke <jrtc27@debian.org> |
| 10 | Signed-off-by: Theodore Ts'o <tytso@mit.edu> |
| 11 | --- |
| 12 | Upstream-Status: Backport |
| 13 | |
| 14 | lib/ext2fs/swapfs.c | 3 ++- |
| 15 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 16 | |
| 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 |
| 21 | @@ -19,6 +19,7 @@ |
| 22 | |
| 23 | #include "ext2_fs.h" |
| 24 | #include "ext2fs.h" |
| 25 | +#include "ext2fsP.h" |
| 26 | #include <ext2fs/ext2_ext_attr.h> |
| 27 | |
| 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); |
| 35 | |
| 36 | i = sizeof(struct ext2_inode) + extra_isize + sizeof(__u32); |
| 37 | if (bufsize < (int) i) |
| 38 | -- |
| 39 | 2.16.1 |
| 40 | |