[dhowells-fs:swap-dio 2/9] fs/affs/file.c:463:2: error: member reference base type 'sector_t (struct address_space *, sector_t)' (aka 'unsigned long long (struct address_space *, unsigned long long)') is not a structure or union

From: kernel test robot
Date: Wed Sep 29 2021 - 14:02:33 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git swap-dio
head: a65f2f4fe575e2069276795af46f962dd4559edf
commit: b52bb021e191a322c2ade3a5f83e658932bef2bf [2/9] mm: Add 'supports' field to the address_space_operations to list features
config: hexagon-randconfig-r036-20210929 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=b52bb021e191a322c2ade3a5f83e658932bef2bf
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs swap-dio
git checkout b52bb021e191a322c2ade3a5f83e658932bef2bf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> fs/affs/file.c:463:2: error: member reference base type 'sector_t (struct address_space *, sector_t)' (aka 'unsigned long long (struct address_space *, unsigned long long)') is not a structure or union
.supports = AS_SUPPORTS_DIRECT_IO,
^~~~~~~~~
1 error generated.


vim +463 fs/affs/file.c

454
455 const struct address_space_operations affs_aops = {
456 .set_page_dirty = __set_page_dirty_buffers,
457 .readpage = affs_readpage,
458 .writepage = affs_writepage,
459 .write_begin = affs_write_begin,
460 .write_end = affs_write_end,
461 .direct_IO = affs_direct_IO,
462 .bmap = _affs_bmap
> 463 .supports = AS_SUPPORTS_DIRECT_IO,
464 };
465

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip