tree:
https://github.com/weiny2/linux-kernel.git lm-misc2
head: 5a6d87311c316d39441135e326dd3b9f9c000a96
commit: 963afc15064156e5fb5cc1568d467b3b1d4178cc [2/8] fs: Move swap_[de]activate to
file_operations
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 963afc15064156e5fb5cc1568d467b3b1d4178cc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
fs/cifs/file.c:4883:3: error: 'const struct address_space_operations' has no
member named 'swap_activate'
4883 | .swap_activate = cifs_swap_activate,
| ^~~~~~~~~~~~~
fs/cifs/file.c:4883:19: error: positional initialization of field in 'struct'
declared with 'designated_init' attribute [-Werror=designated-init]
4883 | .swap_activate = cifs_swap_activate,
| ^~~~~~~~~~~~~~~~~~
fs/cifs/file.c:4883:19: note: (near initialization for 'cifs_addr_ops')
> fs/cifs/file.c:4883:19: error: initialization of 'sector_t
(*)(struct address_space *, sector_t)' {aka 'long long unsigned int (*)(struct
address_space *, long long unsigned int)'} from incompatible pointer type 'int
(*)(struct swap_info_struct *, struct file *, sector_t *)' {aka 'int (*)(struct
swap_info_struct *, struct file *, long long unsigned int *)'}
[-Werror=incompatible-pointer-types]
fs/cifs/file.c:4883:19: note: (near
initialization for 'cifs_addr_ops.bmap')
fs/cifs/file.c:4884:3: error: 'const struct address_space_operations' has no
member named 'swap_deactivate'
4884 | .swap_deactivate = cifs_swap_deactivate,
| ^~~~~~~~~~~~~~~
fs/cifs/file.c:4884:21: error: positional initialization of field in 'struct'
declared with 'designated_init' attribute [-Werror=designated-init]
4884 | .swap_deactivate = cifs_swap_deactivate,
| ^~~~~~~~~~~~~~~~~~~~
fs/cifs/file.c:4884:21: note: (near initialization for 'cifs_addr_ops')
fs/cifs/file.c:4884:21: error: initialization of 'int (*)(struct file *, struct
address_space *, loff_t, unsigned int, unsigned int, struct page **, void **)' {aka
'int (*)(struct file *, struct address_space *, long long int, unsigned int,
unsigned int, struct page **, void **)'} from incompatible pointer type 'void
(*)(struct file *)' [-Werror=incompatible-pointer-types]
fs/cifs/file.c:4884:21: note: (near initialization for
'cifs_addr_ops.write_begin')
cc1: some warnings being treated as errors
vim +4883 fs/cifs/file.c
dca692880e8877 Steve French 2013-11-11 4865
f5e54d6e53a20c Christoph Hellwig 2006-06-28 4866 const struct address_space_operations
cifs_addr_ops = {
^1da177e4c3f41 Linus Torvalds 2005-04-16 4867 .readpage = cifs_readpage,
^1da177e4c3f41 Linus Torvalds 2005-04-16 4868 .readpages = cifs_readpages,
^1da177e4c3f41 Linus Torvalds 2005-04-16 4869 .writepage = cifs_writepage,
37c0eb4677f733 Steve French 2005-10-05 4870 .writepages = cifs_writepages,
d9414774dc0c7b Nick Piggin 2008-09-24 4871 .write_begin = cifs_write_begin,
d9414774dc0c7b Nick Piggin 2008-09-24 4872 .write_end = cifs_write_end,
^1da177e4c3f41 Linus Torvalds 2005-04-16 4873 .set_page_dirty =
__set_page_dirty_nobuffers,
85f2d6b44d7e83 Suresh Jayaraman 2010-07-05 4874 .releasepage = cifs_release_page,
dca692880e8877 Steve French 2013-11-11 4875 .direct_IO = cifs_direct_io,
85f2d6b44d7e83 Suresh Jayaraman 2010-07-05 4876 .invalidatepage =
cifs_invalidate_page,
9ad1506b42c828 Pavel Shilovsky 2011-04-08 4877 .launder_page = cifs_launder_page,
4e8aea30f7751c Steve French 2020-04-09 4878 /*
4e8aea30f7751c Steve French 2020-04-09 4879 * TODO: investigate and if useful we
could add an cifs_migratePage
4e8aea30f7751c Steve French 2020-04-09 4880 * helper (under an CONFIG_MIGRATION)
in the future, and also
4e8aea30f7751c Steve French 2020-04-09 4881 * investigate and add an
is_dirty_writeback helper if needed
4e8aea30f7751c Steve French 2020-04-09 4882 */
4e8aea30f7751c Steve French 2020-04-09 @4883 .swap_activate = cifs_swap_activate,
4e8aea30f7751c Steve French 2020-04-09 4884 .swap_deactivate =
cifs_swap_deactivate,
^1da177e4c3f41 Linus Torvalds 2005-04-16 4885 };
273d81d6ada951 Dave Kleikamp 2006-06-01 4886
:::::: The code at line 4883 was first introduced by commit
:::::: 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3 smb3: enable swap on SMB3 mounts
:::::: TO: Steve French <stfrench(a)microsoft.com>
:::::: CC: Steve French <stfrench(a)microsoft.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org