All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:dax-block-cleanup 18/29] fs/ext2/inode.c:1300:25: error: implicit declaration of function 'dax_zero_range'; did you mean 'iomap_zero_range'?
@ 2021-11-10  5:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-10  5:21 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:   66bc790a8f4d3b62adb7b002b63d48a49f20f7c4
commit: dd820fb94529c2cf0a1077aed2d828e9cdf51aa0 [18/29] 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 dd820fb94529c2cf0a1077aed2d828e9cdf51aa0
        # 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:1300:25: error: implicit declaration of function 'dax_zero_range'; did you mean 'iomap_zero_range'? [-Werror=implicit-function-declaration]
    1300 |                 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 +1300 fs/ext2/inode.c

  1284	
  1285	static int ext2_setsize(struct inode *inode, loff_t newsize)
  1286	{
  1287		int error;
  1288	
  1289		if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
  1290		    S_ISLNK(inode->i_mode)))
  1291			return -EINVAL;
  1292		if (ext2_inode_is_fast_symlink(inode))
  1293			return -EINVAL;
  1294		if (IS_APPEND(inode) || IS_IMMUTABLE(inode))
  1295			return -EPERM;
  1296	
  1297		inode_dio_wait(inode);
  1298	
  1299		if (IS_DAX(inode)) {
> 1300			error = dax_zero_range(inode, newsize,
  1301					       PAGE_ALIGN(newsize) - newsize, NULL,
  1302					       &ext2_iomap_ops);
  1303		} else if (test_opt(inode->i_sb, NOBH))
  1304			error = nobh_truncate_page(inode->i_mapping,
  1305					newsize, ext2_get_block);
  1306		else
  1307			error = block_truncate_page(inode->i_mapping,
  1308					newsize, ext2_get_block);
  1309		if (error)
  1310			return error;
  1311	
  1312		filemap_invalidate_lock(inode->i_mapping);
  1313		truncate_setsize(inode, newsize);
  1314		__ext2_truncate_blocks(inode, newsize);
  1315		filemap_invalidate_unlock(inode->i_mapping);
  1316	
  1317		inode->i_mtime = inode->i_ctime = current_time(inode);
  1318		if (inode_needs_sync(inode)) {
  1319			sync_mapping_buffers(inode->i_mapping);
  1320			sync_inode_metadata(inode, 1);
  1321		} else {
  1322			mark_inode_dirty(inode);
  1323		}
  1324	
  1325		return 0;
  1326	}
  1327	

---
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-10  5:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10  5:21 [hch-misc:dax-block-cleanup 18/29] fs/ext2/inode.c:1300: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.