[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107280317.Dh5KF9te-lkp@intel.com>
Date: Wed, 28 Jul 2021 03:38:19 +0800
From: kernel test robot <lkp@...el.com>
To: Chao Yu <yuchao0@...wei.com>, Chao Yu <chao@...nel.org>
Cc: kbuild-all@...ts.01.org, Chao Yu <yuchao0@...wei.com>,
Chao Yu <chao@...nel.org>, linux-kernel@...r.kernel.org
Subject: [chao-linux:dev 7/7] fs/f2fs/extent_cache.c:690:31: error: storage
size of 'eiu' isn't known
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev
head: 2d3893d5b67f8ee259cf86b2493dc25b4fbf7423
commit: 2d3893d5b67f8ee259cf86b2493dc25b4fbf7423 [7/7] f2fs: extent cache: support unaligned extent
config: xtensa-buildonly-randconfig-r002-20210727 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 10.3.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=2d3893d5b67f8ee259cf86b2493dc25b4fbf7423
git remote add chao-linux https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git
git fetch --no-tags chao-linux dev
git checkout 2d3893d5b67f8ee259cf86b2493dc25b4fbf7423
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash fs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All error/warnings (new ones prefixed by >>):
In file included from fs/f2fs/dir.c:13:
>> fs/f2fs/f2fs.h:4027:13: warning: 'struct extent_info_unaligned' declared inside parameter list will not be visible outside of this definition or declaration
4027 | struct extent_info_unaligned *eiu);
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from fs/f2fs/extent_cache.c:14:
>> fs/f2fs/f2fs.h:4027:13: warning: 'struct extent_info_unaligned' declared inside parameter list will not be visible outside of this definition or declaration
4027 | struct extent_info_unaligned *eiu);
| ^~~~~~~~~~~~~~~~~~~~~
fs/f2fs/extent_cache.c: In function 'f2fs_update_extent_tree_range_unaligned':
>> fs/f2fs/extent_cache.c:690:31: error: storage size of 'eiu' isn't known
690 | struct extent_info_unaligned eiu;
| ^~~
fs/f2fs/extent_cache.c:690:31: warning: unused variable 'eiu' [-Wunused-variable]
vim +690 fs/f2fs/extent_cache.c
681
682 void f2fs_update_extent_tree_range_unaligned(struct inode *inode,
683 pgoff_t fofs, block_t blkaddr, unsigned int llen,
684 unsigned int plen)
685 {
686 struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
687 struct extent_tree *et = F2FS_I(inode)->extent_tree;
688 struct extent_node *en = NULL;
689 struct extent_node *prev_en = NULL, *next_en = NULL;
> 690 struct extent_info_unaligned eiu;
691 struct rb_node **insert_p = NULL, *insert_parent = NULL;
692 bool leftmost = false;
693
694 trace_f2fs_update_extent_tree_range(inode, fofs, blkaddr, llen);
695
696 write_lock(&et->lock);
697
698 if (is_inode_flag_set(inode, FI_NO_EXTENT)) {
699 write_unlock(&et->lock);
700 return;
701 }
702
703 en = (struct extent_node *)f2fs_lookup_rb_tree_ret(&et->root,
704 (struct rb_entry *)et->cached_en, fofs,
705 (struct rb_entry **)&prev_en,
706 (struct rb_entry **)&next_en,
707 &insert_p, &insert_parent, false,
708 &leftmost);
709 f2fs_bug_on(sbi, en);
710
711 set_extent_info(&eiu.ei, fofs, blkaddr, llen);
712 eiu.plen = plen;
713
714 if (!__try_merge_extent_node(sbi, et, (struct extent_info *)&eiu,
715 prev_en, next_en, true))
716 __insert_extent_tree(sbi, et, (struct extent_info *)&eiu,
717 insert_p, insert_parent, leftmost, true);
718
719 write_unlock(&et->lock);
720 }
721
---
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" (25101 bytes)
Powered by blists - more mailing lists