tree:
git://git.infradead.org/users/hch/misc.git dax-block-cleanup
head: 66907b1fedc7f04eadf903bb484c55901b96298c
commit: c33e2c44d0f96e5849d131ad472e7ed58bd6f23b [18/29] fsdax: decouple zeroing from the
iomap buffered I/O code
config: arc-randconfig-r043-20211123
(
https://download.01.org/0day-ci/archive/20211124/202111240133.GdLCa9zq-lk...)
compiler: arc-elf-gcc (GCC) 11.2.0
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
git remote add hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc dax-block-cleanup
git checkout c33e2c44d0f96e5849d131ad472e7ed58bd6f23b
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
fs/ext2/inode.c: In function 'ext2_setsize':
> fs/ext2/inode.c:1301:25: error: implicit declaration of function
'dax_zero_range'; did you mean 'iomap_zero_range'?
[-Werror=implicit-function-declaration]
1301 | error =
dax_zero_range(inode, newsize,
| ^~~~~~~~~~~~~~
| iomap_zero_range
cc1: some warnings being treated as errors
--
fs/ext4/inode.c: In function 'ext4_block_zero_page_range':
> fs/ext4/inode.c:3784:24: error: implicit declaration of function
'dax_zero_range'; did you mean 'iomap_zero_range'?
[-Werror=implicit-function-declaration]
3784 | return
dax_zero_range(inode, from, length, NULL,
| ^~~~~~~~~~~~~~
| iomap_zero_range
cc1: some warnings being treated as errors
vim +1301 fs/ext2/inode.c
1285
1286 static int ext2_setsize(struct inode *inode, loff_t newsize)
1287 {
1288 int error;
1289
1290 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
1291 S_ISLNK(inode->i_mode)))
1292 return -EINVAL;
1293 if (ext2_inode_is_fast_symlink(inode))
1294 return -EINVAL;
1295 if (IS_APPEND(inode) || IS_IMMUTABLE(inode))
1296 return -EPERM;
1297
1298 inode_dio_wait(inode);
1299
1300 if (IS_DAX(inode)) {
1301 error = dax_zero_range(inode, newsize,
1302
PAGE_ALIGN(newsize) - newsize, NULL,
1303 &ext2_iomap_ops);
1304 } else if (test_opt(inode->i_sb, NOBH))
1305 error = nobh_truncate_page(inode->i_mapping,
1306 newsize, ext2_get_block);
1307 else
1308 error = block_truncate_page(inode->i_mapping,
1309 newsize, ext2_get_block);
1310 if (error)
1311 return error;
1312
1313 filemap_invalidate_lock(inode->i_mapping);
1314 truncate_setsize(inode, newsize);
1315 __ext2_truncate_blocks(inode, newsize);
1316 filemap_invalidate_unlock(inode->i_mapping);
1317
1318 inode->i_mtime = inode->i_ctime = current_time(inode);
1319 if (inode_needs_sync(inode)) {
1320 sync_mapping_buffers(inode->i_mapping);
1321 sync_inode_metadata(inode, 1);
1322 } else {
1323 mark_inode_dirty(inode);
1324 }
1325
1326 return 0;
1327 }
1328
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org