All of lore.kernel.org
 help / color / mirror / Atom feed
* [chao:dev-test 8/9] fs/f2fs/extent_cache.c:370:7: error: implicit declaration of function 'f2fs_may_extent_tree'
@ 2021-10-30  4:01 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-30  4:01 UTC (permalink / raw)
  To: Chao Yu, Chao Yu; +Cc: llvm, kbuild-all, Chao Yu, Chao Yu, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 5414 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev-test
head:   55b056f09eae9455fa67c621a05ee5c4053da974
commit: 41cc0ba1214fb40a69e21acafc0e8ace49734653 [8/9] f2fs: introduce sb.required_features to store incompatible features
config: i386-randconfig-a012-20211028 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
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/chao/linux.git/commit/?id=41cc0ba1214fb40a69e21acafc0e8ace49734653
        git remote add chao https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git
        git fetch --no-tags chao dev-test
        git checkout 41cc0ba1214fb40a69e21acafc0e8ace49734653
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 

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/f2fs/extent_cache.c:370:7: error: implicit declaration of function 'f2fs_may_extent_tree' [-Werror,-Wimplicit-function-declaration]
           if (!f2fs_may_extent_tree(inode)) {
                ^
   fs/f2fs/extent_cache.c:804:7: error: implicit declaration of function 'f2fs_may_extent_tree' [-Werror,-Wimplicit-function-declaration]
           if (!f2fs_may_extent_tree(inode))
                ^
   fs/f2fs/extent_cache.c:857:7: error: implicit declaration of function 'f2fs_may_extent_tree' [-Werror,-Wimplicit-function-declaration]
           if (!f2fs_may_extent_tree(inode))
                ^
   fs/f2fs/extent_cache.c:868:7: error: implicit declaration of function 'f2fs_may_extent_tree' [-Werror,-Wimplicit-function-declaration]
           if (!f2fs_may_extent_tree(dn->inode))
                ^
   fs/f2fs/extent_cache.c:885:7: error: implicit declaration of function 'f2fs_may_extent_tree' [-Werror,-Wimplicit-function-declaration]
           if (!f2fs_may_extent_tree(dn->inode))
                ^
   5 errors generated.


vim +/f2fs_may_extent_tree +370 fs/f2fs/extent_cache.c

a28ef1f5aebe10 Chao Yu     2015-07-08  360  
ed3d12561a731b Jaegeuk Kim 2015-12-28  361  /* return true, if inode page is changed */
a6d601f30d3bae Chao Yu     2020-06-28  362  static void __f2fs_init_extent_tree(struct inode *inode, struct page *ipage)
a28ef1f5aebe10 Chao Yu     2015-07-08  363  {
a28ef1f5aebe10 Chao Yu     2015-07-08  364  	struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
a6d601f30d3bae Chao Yu     2020-06-28  365  	struct f2fs_extent *i_ext = ipage ? &F2FS_INODE(ipage)->i_ext : NULL;
a28ef1f5aebe10 Chao Yu     2015-07-08  366  	struct extent_tree *et;
a28ef1f5aebe10 Chao Yu     2015-07-08  367  	struct extent_node *en;
a28ef1f5aebe10 Chao Yu     2015-07-08  368  	struct extent_info ei;
a28ef1f5aebe10 Chao Yu     2015-07-08  369  
ed3d12561a731b Jaegeuk Kim 2015-12-28 @370  	if (!f2fs_may_extent_tree(inode)) {
ed3d12561a731b Jaegeuk Kim 2015-12-28  371  		/* drop largest extent */
ed3d12561a731b Jaegeuk Kim 2015-12-28  372  		if (i_ext && i_ext->len) {
a6d601f30d3bae Chao Yu     2020-06-28  373  			f2fs_wait_on_page_writeback(ipage, NODE, true, true);
ed3d12561a731b Jaegeuk Kim 2015-12-28  374  			i_ext->len = 0;
a6d601f30d3bae Chao Yu     2020-06-28  375  			set_page_dirty(ipage);
a6d601f30d3bae Chao Yu     2020-06-28  376  			return;
ed3d12561a731b Jaegeuk Kim 2015-12-28  377  		}
a6d601f30d3bae Chao Yu     2020-06-28  378  		return;
ed3d12561a731b Jaegeuk Kim 2015-12-28  379  	}
a28ef1f5aebe10 Chao Yu     2015-07-08  380  
a28ef1f5aebe10 Chao Yu     2015-07-08  381  	et = __grab_extent_tree(inode);
a28ef1f5aebe10 Chao Yu     2015-07-08  382  
ed3d12561a731b Jaegeuk Kim 2015-12-28  383  	if (!i_ext || !i_ext->len)
a6d601f30d3bae Chao Yu     2020-06-28  384  		return;
a28ef1f5aebe10 Chao Yu     2015-07-08  385  
bd933d4faedf3a Chao Yu     2016-05-04  386  	get_extent_info(&ei, i_ext);
a28ef1f5aebe10 Chao Yu     2015-07-08  387  
a28ef1f5aebe10 Chao Yu     2015-07-08  388  	write_lock(&et->lock);
68e353851002dc Chao Yu     2016-01-08  389  	if (atomic_read(&et->node_cnt))
a28ef1f5aebe10 Chao Yu     2015-07-08  390  		goto out;
a28ef1f5aebe10 Chao Yu     2015-07-08  391  
a6f7834594a284 Chao Yu     2015-08-19  392  	en = __init_extent_tree(sbi, et, &ei);
a28ef1f5aebe10 Chao Yu     2015-07-08  393  	if (en) {
a28ef1f5aebe10 Chao Yu     2015-07-08  394  		spin_lock(&sbi->extent_lock);
a28ef1f5aebe10 Chao Yu     2015-07-08  395  		list_add_tail(&en->list, &sbi->extent_list);
a28ef1f5aebe10 Chao Yu     2015-07-08  396  		spin_unlock(&sbi->extent_lock);
a28ef1f5aebe10 Chao Yu     2015-07-08  397  	}
a28ef1f5aebe10 Chao Yu     2015-07-08  398  out:
a28ef1f5aebe10 Chao Yu     2015-07-08  399  	write_unlock(&et->lock);
a28ef1f5aebe10 Chao Yu     2015-07-08  400  }
a28ef1f5aebe10 Chao Yu     2015-07-08  401  

:::::: The code at line 370 was first introduced by commit
:::::: ed3d12561a731b99b58c6c95151291cebf0b3feb f2fs: load largest extent all the time

:::::: TO: Jaegeuk Kim <jaegeuk@kernel.org>
:::::: CC: Jaegeuk Kim <jaegeuk@kernel.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36697 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [chao:dev-test 8/9] fs/f2fs/extent_cache.c:370:7: error: implicit declaration of function 'f2fs_may_extent_tree'
@ 2021-10-30  4:01 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-30  4:01 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5508 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev-test
head:   55b056f09eae9455fa67c621a05ee5c4053da974
commit: 41cc0ba1214fb40a69e21acafc0e8ace49734653 [8/9] f2fs: introduce sb.required_features to store incompatible features
config: i386-randconfig-a012-20211028 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
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/chao/linux.git/commit/?id=41cc0ba1214fb40a69e21acafc0e8ace49734653
        git remote add chao https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git
        git fetch --no-tags chao dev-test
        git checkout 41cc0ba1214fb40a69e21acafc0e8ace49734653
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 

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/f2fs/extent_cache.c:370:7: error: implicit declaration of function 'f2fs_may_extent_tree' [-Werror,-Wimplicit-function-declaration]
           if (!f2fs_may_extent_tree(inode)) {
                ^
   fs/f2fs/extent_cache.c:804:7: error: implicit declaration of function 'f2fs_may_extent_tree' [-Werror,-Wimplicit-function-declaration]
           if (!f2fs_may_extent_tree(inode))
                ^
   fs/f2fs/extent_cache.c:857:7: error: implicit declaration of function 'f2fs_may_extent_tree' [-Werror,-Wimplicit-function-declaration]
           if (!f2fs_may_extent_tree(inode))
                ^
   fs/f2fs/extent_cache.c:868:7: error: implicit declaration of function 'f2fs_may_extent_tree' [-Werror,-Wimplicit-function-declaration]
           if (!f2fs_may_extent_tree(dn->inode))
                ^
   fs/f2fs/extent_cache.c:885:7: error: implicit declaration of function 'f2fs_may_extent_tree' [-Werror,-Wimplicit-function-declaration]
           if (!f2fs_may_extent_tree(dn->inode))
                ^
   5 errors generated.


vim +/f2fs_may_extent_tree +370 fs/f2fs/extent_cache.c

a28ef1f5aebe10 Chao Yu     2015-07-08  360  
ed3d12561a731b Jaegeuk Kim 2015-12-28  361  /* return true, if inode page is changed */
a6d601f30d3bae Chao Yu     2020-06-28  362  static void __f2fs_init_extent_tree(struct inode *inode, struct page *ipage)
a28ef1f5aebe10 Chao Yu     2015-07-08  363  {
a28ef1f5aebe10 Chao Yu     2015-07-08  364  	struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
a6d601f30d3bae Chao Yu     2020-06-28  365  	struct f2fs_extent *i_ext = ipage ? &F2FS_INODE(ipage)->i_ext : NULL;
a28ef1f5aebe10 Chao Yu     2015-07-08  366  	struct extent_tree *et;
a28ef1f5aebe10 Chao Yu     2015-07-08  367  	struct extent_node *en;
a28ef1f5aebe10 Chao Yu     2015-07-08  368  	struct extent_info ei;
a28ef1f5aebe10 Chao Yu     2015-07-08  369  
ed3d12561a731b Jaegeuk Kim 2015-12-28 @370  	if (!f2fs_may_extent_tree(inode)) {
ed3d12561a731b Jaegeuk Kim 2015-12-28  371  		/* drop largest extent */
ed3d12561a731b Jaegeuk Kim 2015-12-28  372  		if (i_ext && i_ext->len) {
a6d601f30d3bae Chao Yu     2020-06-28  373  			f2fs_wait_on_page_writeback(ipage, NODE, true, true);
ed3d12561a731b Jaegeuk Kim 2015-12-28  374  			i_ext->len = 0;
a6d601f30d3bae Chao Yu     2020-06-28  375  			set_page_dirty(ipage);
a6d601f30d3bae Chao Yu     2020-06-28  376  			return;
ed3d12561a731b Jaegeuk Kim 2015-12-28  377  		}
a6d601f30d3bae Chao Yu     2020-06-28  378  		return;
ed3d12561a731b Jaegeuk Kim 2015-12-28  379  	}
a28ef1f5aebe10 Chao Yu     2015-07-08  380  
a28ef1f5aebe10 Chao Yu     2015-07-08  381  	et = __grab_extent_tree(inode);
a28ef1f5aebe10 Chao Yu     2015-07-08  382  
ed3d12561a731b Jaegeuk Kim 2015-12-28  383  	if (!i_ext || !i_ext->len)
a6d601f30d3bae Chao Yu     2020-06-28  384  		return;
a28ef1f5aebe10 Chao Yu     2015-07-08  385  
bd933d4faedf3a Chao Yu     2016-05-04  386  	get_extent_info(&ei, i_ext);
a28ef1f5aebe10 Chao Yu     2015-07-08  387  
a28ef1f5aebe10 Chao Yu     2015-07-08  388  	write_lock(&et->lock);
68e353851002dc Chao Yu     2016-01-08  389  	if (atomic_read(&et->node_cnt))
a28ef1f5aebe10 Chao Yu     2015-07-08  390  		goto out;
a28ef1f5aebe10 Chao Yu     2015-07-08  391  
a6f7834594a284 Chao Yu     2015-08-19  392  	en = __init_extent_tree(sbi, et, &ei);
a28ef1f5aebe10 Chao Yu     2015-07-08  393  	if (en) {
a28ef1f5aebe10 Chao Yu     2015-07-08  394  		spin_lock(&sbi->extent_lock);
a28ef1f5aebe10 Chao Yu     2015-07-08  395  		list_add_tail(&en->list, &sbi->extent_list);
a28ef1f5aebe10 Chao Yu     2015-07-08  396  		spin_unlock(&sbi->extent_lock);
a28ef1f5aebe10 Chao Yu     2015-07-08  397  	}
a28ef1f5aebe10 Chao Yu     2015-07-08  398  out:
a28ef1f5aebe10 Chao Yu     2015-07-08  399  	write_unlock(&et->lock);
a28ef1f5aebe10 Chao Yu     2015-07-08  400  }
a28ef1f5aebe10 Chao Yu     2015-07-08  401  

:::::: The code at line 370 was first introduced by commit
:::::: ed3d12561a731b99b58c6c95151291cebf0b3feb f2fs: load largest extent all the time

:::::: TO: Jaegeuk Kim <jaegeuk@kernel.org>
:::::: CC: Jaegeuk Kim <jaegeuk@kernel.org>

---
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: 36697 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-30  4:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30  4:01 [chao:dev-test 8/9] fs/f2fs/extent_cache.c:370:7: error: implicit declaration of function 'f2fs_may_extent_tree' kernel test robot
2021-10-30  4:01 ` 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.