[xfs:xfs-4.8-misc-fixes-2 3/9] fs/xfs/xfs_ondisk.h:116:2: error: call to '__compiletime_assert_116' declared with attribute error: XFS: offsetof(xfs_dir2_sf_entry_t, offset) is wrong, expected 1
kbuild test robot
fengguang.wu at intel.com
Wed Jun 22 01:06:49 CDT 2016
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs.git xfs-4.8-misc-fixes-2
head: 19b54ee66c4c5de8f8db74d5914d9a97161460bf
commit: 3f94c441e2c3dea029a46a2326b2170acf2c7713 [3/9] xfs: check offsets of variable length structures
config: openrisc-allmodconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 3f94c441e2c3dea029a46a2326b2170acf2c7713
# save the attached .config to linux build tree
make.cross ARCH=openrisc
All errors (new ones prefixed by >>):
In file included from fs/xfs/xfs_super.c:48:0:
In function 'xfs_check_ondisk_structs',
inlined from 'init_xfs_fs' at fs/xfs/xfs_super.c:1855:26:
fs/xfs/xfs_ondisk.h:114:2: error: call to '__compiletime_assert_114' declared with attribute error: XFS: sizeof(xfs_dir2_sf_entry_t) is wrong, expected 3
>> fs/xfs/xfs_ondisk.h:116:2: error: call to '__compiletime_assert_116' declared with attribute error: XFS: offsetof(xfs_dir2_sf_entry_t, offset) is wrong, expected 1
>> fs/xfs/xfs_ondisk.h:117:2: error: call to '__compiletime_assert_117' declared with attribute error: XFS: offsetof(xfs_dir2_sf_entry_t, name) is wrong, expected 3
fs/xfs/xfs_ondisk.h:118:2: error: call to '__compiletime_assert_118' declared with attribute error: XFS: sizeof(xfs_dir2_sf_hdr_t) is wrong, expected 10
vim +/__compiletime_assert_116 +116 fs/xfs/xfs_ondisk.h
108 XFS_CHECK_STRUCT_SIZE(xfs_dir2_ino8_t, 8);
109 XFS_CHECK_STRUCT_SIZE(xfs_dir2_inou_t, 8);
110 XFS_CHECK_STRUCT_SIZE(xfs_dir2_leaf_entry_t, 8);
111 XFS_CHECK_STRUCT_SIZE(xfs_dir2_leaf_hdr_t, 16);
112 XFS_CHECK_STRUCT_SIZE(xfs_dir2_leaf_t, 16);
113 XFS_CHECK_STRUCT_SIZE(xfs_dir2_leaf_tail_t, 4);
> 114 XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_entry_t, 3);
115 XFS_CHECK_OFFSET(xfs_dir2_sf_entry_t, namelen, 0);
> 116 XFS_CHECK_OFFSET(xfs_dir2_sf_entry_t, offset, 1);
> 117 XFS_CHECK_OFFSET(xfs_dir2_sf_entry_t, name, 3);
118 XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_hdr_t, 10);
119 XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_off_t, 2);
120
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 37842 bytes
Desc: not available
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20160622/da3a9d6c/attachment-0001.obj>
More information about the xfs
mailing list