* [hch-misc:dax-block-cleanup 17/28] fs/ext2/inode.c:1301:25: error: implicit declaration of function 'dax_zero_range'; did you mean 'iomap_zero_range'?
@ 2021-11-11 10:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-11 10:18 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3855 bytes --]
tree: git://git.infradead.org/users/hch/misc.git dax-block-cleanup
head: 20496fef46c2a719f60d21f17b1a1862e069b836
commit: 79f6e11d1b1b194d8233f414909760ca0c45005e [17/28] fsdax: decouple zeroing from the iomap buffered I/O code
config: ia64-defconfig (attached as .config)
compiler: ia64-linux-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 79f6e11d1b1b194d8233f414909760ca0c45005e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@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/xfs/xfs_iomap.c: In function 'xfs_zero_range':
>> fs/xfs/xfs_iomap.c:1325:24: error: implicit declaration of function 'dax_zero_range'; did you mean 'xfs_zero_range'? [-Werror=implicit-function-declaration]
1325 | return dax_zero_range(inode, pos, len, did_zero,
| ^~~~~~~~~~~~~~
| xfs_zero_range
fs/xfs/xfs_iomap.c: In function 'xfs_truncate_page':
>> fs/xfs/xfs_iomap.c:1340:24: error: implicit declaration of function 'dax_truncate_page'; did you mean 'xfs_truncate_page'? [-Werror=implicit-function-declaration]
1340 | return dax_truncate_page(inode, pos, did_zero,
| ^~~~~~~~~~~~~~~~~
| xfs_truncate_page
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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 20007 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-11 10:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 10:18 [hch-misc:dax-block-cleanup 17/28] fs/ext2/inode.c:1301:25: error: implicit declaration of function 'dax_zero_range'; did you mean 'iomap_zero_range'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.