fs/f2fs/file.c:599:9: error: implicit declaration of function 'iomap_zero_range'
A message that is not in the archive (sent off-list or not yet received): 201707220508.tlZncFoS%[email protected]
Qiuyang,
I've modified your patch to resolve this, and pushed a new one into f2fs.git. Could you please check it?
Thanks,
Quoted 74 lines · kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev-test head: 7f25bbd057c335857559619b4a16738b3ba79db9 commit: 7f25bbd057c335857559619b4a16738b3ba79db9 [9/9] f2fs: dax: implement direct access config: i386-randconfig-x003-07210940 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 7f25bbd057c335857559619b4a16738b3ba79db9 # save the attached .config to linux build tree make ARCH=i386All errors (new ones prefixed by >>):
fs/f2fs/file.c: In function 'truncate_partial_data_page':Quoted 1 line
Quoted 1 line
fs/f2fs/file.c:599:9: error: implicit declaration of function 'iomap_zero_range' [-Werror=implicit-function-declaration]ret = iomap_zero_range(inode, from,
PAGE_SIZE- offset,
^~~~~~~~~~~~~~~~Quoted 1 line
Quoted 1 line
fs/f2fs/file.c:600:11: error: 'f2fs_iomap_ops' undeclared (first use in this function)NULL, &f2fs_iomap_ops); ^~~~~~~~~~~~~~ fs/f2fs/file.c:600:11: note: each undeclared identifier is reported only once for each function it appears in fs/f2fs/file.c: In function 'fill_zero': fs/f2fs/file.c:891:16: error: 'f2fs_iomap_ops' undeclared (first use in this function) len, NULL, &f2fs_iomap_ops); ^~~~~~~~~~~~~~cc1: some warnings being treated as errors
vim +/iomap_zero_range +599
fs/f2fs/file.c583 584 static int truncate_partial_data_page(struct inode *inode, u64 from, 585 bool cache_only) 586 { 587 unsigned offset = from & (PAGE_SIZE - 1); 588 pgoff_t index = from >> PAGE_SHIFT; 589 struct address_space *mapping = inode->i_mapping; 590 struct page *page; 591 592 if (!offset && !cache_only) 593 return 0; 594 595 if (f2fs_dax_file(inode)) { 596 int ret; 597 598 down_read(&F2FS_I(inode)->dio_rwsem[WRITE]);Quoted 2 lines
599 ret = iomap_zero_range(inode, from,
PAGE_SIZE- offset,
600 NULL,&f2fs_iomap_ops);601 up_read(&F2FS_I(inode)->dio_rwsem[WRITE]); 602 return ret; 603 } 604 605 if (cache_only) { 606 page = find_lock_page(mapping, index); 607 if (page && PageUptodate(page)) 608 goto truncate_out; 609 f2fs_put_page(page, 1); 610 return 0; 611 } 612 613 page = get_lock_data_page(inode, index, true); 614 if (IS_ERR(page)) 615 return PTR_ERR(page) == -ENOENT ? 0 : PTR_ERR(page); 616 truncate_out: 617 f2fs_wait_on_page_writeback(page, DATA, true); 618 zero_user(page, offset, PAGE_SIZE - offset); 619 620 /* An encrypted inode should have a key and truncate the last page. */ 621 f2fs_bug_on(F2FS_I_SB(inode), cache_only && f2fs_encrypted_inode(inode)); 622 if (!cache_only) 623 set_page_dirty(page); 624 f2fs_put_page(page, 1); 625 return 0; 626 } 627
Quoted 3 lines
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Hi Jaegeuk,
OK, I agree with your modification.
Thanks,
________________________________________
From: Jaegeuk Kim [[email protected]]
Sent: Saturday, July 22, 2017 6:09
To: kbuild test robot
Cc: sunqiuyang; [email protected]; [email protected]
Subject: Re: [f2fs:dev-test 9/9] fs/f2fs/file.c:599:9: error: implicit declaration of function 'iomap_zero_range'
Qiuyang,
I've modified your patch to resolve this, and pushed a new one into f2fs.git. Could you please check it?
Thanks,
Quoted 74 lines · kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev-test head: 7f25bbd057c335857559619b4a16738b3ba79db9 commit: 7f25bbd057c335857559619b4a16738b3ba79db9 [9/9] f2fs: dax: implement direct access config: i386-randconfig-x003-07210940 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 7f25bbd057c335857559619b4a16738b3ba79db9 # save the attached .config to linux build tree make ARCH=i386All errors (new ones prefixed by >>):
fs/f2fs/file.c: In function 'truncate_partial_data_page':Quoted 1 line
Quoted 1 line
fs/f2fs/file.c:599:9: error: implicit declaration of function 'iomap_zero_range' [-Werror=implicit-function-declaration]ret = iomap_zero_range(inode, from,
PAGE_SIZE- offset,
^~~~~~~~~~~~~~~~Quoted 1 line
Quoted 1 line
fs/f2fs/file.c:600:11: error: 'f2fs_iomap_ops' undeclared (first use in this function)NULL, &f2fs_iomap_ops); ^~~~~~~~~~~~~~ fs/f2fs/file.c:600:11: note: each undeclared identifier is reported only once for each function it appears in fs/f2fs/file.c: In function 'fill_zero': fs/f2fs/file.c:891:16: error: 'f2fs_iomap_ops' undeclared (first use in this function) len, NULL, &f2fs_iomap_ops); ^~~~~~~~~~~~~~cc1: some warnings being treated as errors
vim +/iomap_zero_range +599
fs/f2fs/file.c583 584 static int truncate_partial_data_page(struct inode *inode, u64 from, 585 bool cache_only) 586 { 587 unsigned offset = from & (PAGE_SIZE - 1); 588 pgoff_t index = from >> PAGE_SHIFT; 589 struct address_space *mapping = inode->i_mapping; 590 struct page *page; 591 592 if (!offset && !cache_only) 593 return 0; 594 595 if (f2fs_dax_file(inode)) { 596 int ret; 597 598 down_read(&F2FS_I(inode)->dio_rwsem[WRITE]);Quoted 2 lines
599 ret = iomap_zero_range(inode, from,
PAGE_SIZE- offset,
600 NULL,&f2fs_iomap_ops);601 up_read(&F2FS_I(inode)->dio_rwsem[WRITE]); 602 return ret; 603 } 604 605 if (cache_only) { 606 page = find_lock_page(mapping, index); 607 if (page && PageUptodate(page)) 608 goto truncate_out; 609 f2fs_put_page(page, 1); 610 return 0; 611 } 612 613 page = get_lock_data_page(inode, index, true); 614 if (IS_ERR(page)) 615 return PTR_ERR(page) == -ENOENT ? 0 : PTR_ERR(page); 616 truncate_out: 617 f2fs_wait_on_page_writeback(page, DATA, true); 618 zero_user(page, offset, PAGE_SIZE - offset); 619 620 /* An encrypted inode should have a key and truncate the last page. */ 621 f2fs_bug_on(F2FS_I_SB(inode), cache_only && f2fs_encrypted_inode(inode)); 622 if (!cache_only) 623 set_page_dirty(page); 624 f2fs_put_page(page, 1); 625 return 0; 626 } 627
Quoted 3 lines
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot