[dhowells-fs:swap-dio 2/9] fs/fat/inode.c:354: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: Tue Sep 28 2021 - 17:44:43 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git swap-dio
head: 705b6cfdaad1c83615b91f81a59c946ccba5fb5f
commit: d4af67cd798d2b9a628bd685d6a8ce16592af48b [2/9] mm: Add 'supports' field to the address_space_operations to list features
config: hexagon-randconfig-r045-20210928 (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=d4af67cd798d2b9a628bd685d6a8ce16592af48b
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 d4af67cd798d2b9a628bd685d6a8ce16592af48b
# 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/fat/inode.c:354: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 +354 fs/fat/inode.c

343
344 static const struct address_space_operations fat_aops = {
345 .set_page_dirty = __set_page_dirty_buffers,
346 .readpage = fat_readpage,
347 .readahead = fat_readahead,
348 .writepage = fat_writepage,
349 .writepages = fat_writepages,
350 .write_begin = fat_write_begin,
351 .write_end = fat_write_end,
352 .direct_IO = fat_direct_IO,
353 .bmap = _fat_bmap
> 354 .supports = AS_SUPPORTS_DIRECT_IO,
355 };
356

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

Attachment: .config.gz
Description: application/gzip