lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110301210.vWTWZEqJ-lkp@intel.com>
Date:   Sat, 30 Oct 2021 12:01:47 +0800
From:   kernel test robot <lkp@...el.com>
To:     Chao Yu <yuchao0@...wei.com>, Chao Yu <chao@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        Chao Yu <yuchao0@...wei.com>, Chao Yu <chao@...nel.org>,
        linux-kernel@...r.kernel.org
Subject: [chao:dev-test 8/9] fs/f2fs/extent_cache.c:370:7: error: implicit
 declaration of function 'f2fs_may_extent_tree'

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@...el.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@...nel.org>
:::::: CC: Jaegeuk Kim <jaegeuk@...nel.org>

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

Download attachment ".config.gz" of type "application/gzip" (36697 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ