LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
	Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: [chao-linux:dev 7/7] fs/f2fs/extent_cache.c:690:31: error: variable has incomplete type 'struct extent_info_unaligned'
Date: Sun, 1 Aug 2021 10:01:02 +0800	[thread overview]
Message-ID: <202108011054.RetFmA9R-lkp@intel.com> (raw)

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

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: x86_64-randconfig-a013-20210728 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c49df15c278857adecd12db6bb1cdc96885f7079)
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=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   In file included from fs/f2fs/file.c:27:
>> fs/f2fs/f2fs.h:4027:13: warning: declaration of 'struct extent_info_unaligned' will not be visible outside of this function [-Wvisibility]
                                           struct extent_info_unaligned *eiu);
                                                  ^
   1 warning generated.
--
   In file included from fs/f2fs/extent_cache.c:14:
>> fs/f2fs/f2fs.h:4027:13: warning: declaration of 'struct extent_info_unaligned' will not be visible outside of this function [-Wvisibility]
                                           struct extent_info_unaligned *eiu);
                                                  ^
>> fs/f2fs/extent_cache.c:690:31: error: variable has incomplete type 'struct extent_info_unaligned'
           struct extent_info_unaligned eiu;
                                        ^
   fs/f2fs/extent_cache.c:690:9: note: forward declaration of 'struct extent_info_unaligned'
           struct extent_info_unaligned eiu;
                  ^
   1 warning and 1 error generated.


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

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

                 reply	other threads:[~2021-08-01  2:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202108011054.RetFmA9R-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chao@kernel.org \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yuchao0@huawei.com \
    --subject='Re: [chao-linux:dev 7/7] fs/f2fs/extent_cache.c:690:31: error: variable has incomplete type '\''struct extent_info_unaligned'\''' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).