All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [chao:dev-test 8/9] fs/f2fs/extent_cache.c:370:14: error: implicit declaration of function 'f2fs_may_extent_tree'; did you mean 'f2fs_drop_extent_tree'?
Date: Fri, 29 Oct 2021 09:13:14 +0800	[thread overview]
Message-ID: <202110290900.9tuROoZe-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4796 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: arc-randconfig-r043-20211028 (attached as .config)
compiler: arceb-elf-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
        # 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=gcc-11.2.0 make.cross ARCH=arc 

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: In function '__f2fs_init_extent_tree':
>> fs/f2fs/extent_cache.c:370:14: error: implicit declaration of function 'f2fs_may_extent_tree'; did you mean 'f2fs_drop_extent_tree'? [-Werror=implicit-function-declaration]
     370 |         if (!f2fs_may_extent_tree(inode)) {
         |              ^~~~~~~~~~~~~~~~~~~~
         |              f2fs_drop_extent_tree
   cc1: some warnings being treated as errors


vim +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: 35996 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
Cc: kbuild-all@lists.01.org, Chao Yu <yuchao0@huawei.com>,
	Chao Yu <chao@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: [chao:dev-test 8/9] fs/f2fs/extent_cache.c:370:14: error: implicit declaration of function 'f2fs_may_extent_tree'; did you mean 'f2fs_drop_extent_tree'?
Date: Fri, 29 Oct 2021 09:13:14 +0800	[thread overview]
Message-ID: <202110290900.9tuROoZe-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4712 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: arc-randconfig-r043-20211028 (attached as .config)
compiler: arceb-elf-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
        # 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=gcc-11.2.0 make.cross ARCH=arc 

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: In function '__f2fs_init_extent_tree':
>> fs/f2fs/extent_cache.c:370:14: error: implicit declaration of function 'f2fs_may_extent_tree'; did you mean 'f2fs_drop_extent_tree'? [-Werror=implicit-function-declaration]
     370 |         if (!f2fs_may_extent_tree(inode)) {
         |              ^~~~~~~~~~~~~~~~~~~~
         |              f2fs_drop_extent_tree
   cc1: some warnings being treated as errors


vim +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: 35996 bytes --]

             reply	other threads:[~2021-10-29  1:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-29  1:13 kernel test robot [this message]
2021-10-29  1:13 ` [chao:dev-test 8/9] fs/f2fs/extent_cache.c:370:14: error: implicit declaration of function 'f2fs_may_extent_tree'; did you mean 'f2fs_drop_extent_tree'? kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202110290900.9tuROoZe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.