From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [chao-linux:dev 7/7] fs/f2fs/f2fs.h:4027:13: warning: declaration of 'struct extent_info_unaligned' will not be visible outside of this function
Date: Fri, 30 Jul 2021 00:46:25 +0800 [thread overview]
Message-ID: <202107300020.FE9fsfkv-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4600 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-c001-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c658b472f3e61e1818e1909bf02f3d65470018a5)
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from fs/f2fs/dir.c:13:
>> 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 +4027 fs/f2fs/f2fs.h
3995
3996 /*
3997 * extent_cache.c
3998 */
3999 struct rb_entry *f2fs_lookup_rb_tree(struct rb_root_cached *root,
4000 struct rb_entry *cached_re, unsigned int ofs);
4001 struct rb_node **f2fs_lookup_rb_tree_ext(struct f2fs_sb_info *sbi,
4002 struct rb_root_cached *root,
4003 struct rb_node **parent,
4004 unsigned long long key, bool *left_most);
4005 struct rb_node **f2fs_lookup_rb_tree_for_insert(struct f2fs_sb_info *sbi,
4006 struct rb_root_cached *root,
4007 struct rb_node **parent,
4008 unsigned int ofs, bool *leftmost);
4009 struct rb_entry *f2fs_lookup_rb_tree_ret(struct rb_root_cached *root,
4010 struct rb_entry *cached_re, unsigned int ofs,
4011 struct rb_entry **prev_entry, struct rb_entry **next_entry,
4012 struct rb_node ***insert_p, struct rb_node **insert_parent,
4013 bool force, bool *leftmost);
4014 bool f2fs_check_rb_tree_consistence(struct f2fs_sb_info *sbi,
4015 struct rb_root_cached *root, bool check_key);
4016 void f2fs_update_extent_tree_range_unaligned(struct inode *inode,
4017 pgoff_t fofs, block_t blkaddr, unsigned int llen,
4018 unsigned int plen);
4019 unsigned int f2fs_shrink_extent_tree(struct f2fs_sb_info *sbi, int nr_shrink);
4020 void f2fs_init_extent_tree(struct inode *inode, struct page *ipage);
4021 void f2fs_drop_extent_tree(struct inode *inode);
4022 unsigned int f2fs_destroy_extent_node(struct inode *inode);
4023 void f2fs_destroy_extent_tree(struct inode *inode);
4024 bool f2fs_lookup_extent_cache(struct inode *inode, pgoff_t pgofs,
4025 struct extent_info *ei);
4026 bool f2fs_lookup_extent_cache_unaligned(struct inode *inode, pgoff_t pgofs,
> 4027 struct extent_info_unaligned *eiu);
4028 void f2fs_update_extent_cache(struct dnode_of_data *dn);
4029 void f2fs_update_extent_cache_range(struct dnode_of_data *dn,
4030 pgoff_t fofs, block_t blkaddr, unsigned int len);
4031 void f2fs_init_extent_cache_info(struct f2fs_sb_info *sbi);
4032 int __init f2fs_create_extent_cache(void);
4033 void f2fs_destroy_extent_cache(void);
4034
---
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: 34139 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: 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/f2fs.h:4027:13: warning: declaration of 'struct extent_info_unaligned' will not be visible outside of this function
Date: Fri, 30 Jul 2021 00:46:25 +0800 [thread overview]
Message-ID: <202107300020.FE9fsfkv-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4513 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-c001-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c658b472f3e61e1818e1909bf02f3d65470018a5)
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from fs/f2fs/dir.c:13:
>> 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 +4027 fs/f2fs/f2fs.h
3995
3996 /*
3997 * extent_cache.c
3998 */
3999 struct rb_entry *f2fs_lookup_rb_tree(struct rb_root_cached *root,
4000 struct rb_entry *cached_re, unsigned int ofs);
4001 struct rb_node **f2fs_lookup_rb_tree_ext(struct f2fs_sb_info *sbi,
4002 struct rb_root_cached *root,
4003 struct rb_node **parent,
4004 unsigned long long key, bool *left_most);
4005 struct rb_node **f2fs_lookup_rb_tree_for_insert(struct f2fs_sb_info *sbi,
4006 struct rb_root_cached *root,
4007 struct rb_node **parent,
4008 unsigned int ofs, bool *leftmost);
4009 struct rb_entry *f2fs_lookup_rb_tree_ret(struct rb_root_cached *root,
4010 struct rb_entry *cached_re, unsigned int ofs,
4011 struct rb_entry **prev_entry, struct rb_entry **next_entry,
4012 struct rb_node ***insert_p, struct rb_node **insert_parent,
4013 bool force, bool *leftmost);
4014 bool f2fs_check_rb_tree_consistence(struct f2fs_sb_info *sbi,
4015 struct rb_root_cached *root, bool check_key);
4016 void f2fs_update_extent_tree_range_unaligned(struct inode *inode,
4017 pgoff_t fofs, block_t blkaddr, unsigned int llen,
4018 unsigned int plen);
4019 unsigned int f2fs_shrink_extent_tree(struct f2fs_sb_info *sbi, int nr_shrink);
4020 void f2fs_init_extent_tree(struct inode *inode, struct page *ipage);
4021 void f2fs_drop_extent_tree(struct inode *inode);
4022 unsigned int f2fs_destroy_extent_node(struct inode *inode);
4023 void f2fs_destroy_extent_tree(struct inode *inode);
4024 bool f2fs_lookup_extent_cache(struct inode *inode, pgoff_t pgofs,
4025 struct extent_info *ei);
4026 bool f2fs_lookup_extent_cache_unaligned(struct inode *inode, pgoff_t pgofs,
> 4027 struct extent_info_unaligned *eiu);
4028 void f2fs_update_extent_cache(struct dnode_of_data *dn);
4029 void f2fs_update_extent_cache_range(struct dnode_of_data *dn,
4030 pgoff_t fofs, block_t blkaddr, unsigned int len);
4031 void f2fs_init_extent_cache_info(struct f2fs_sb_info *sbi);
4032 int __init f2fs_create_extent_cache(void);
4033 void f2fs_destroy_extent_cache(void);
4034
---
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: 34139 bytes --]
next reply other threads:[~2021-07-29 16:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-29 16:46 kernel test robot [this message]
2021-07-29 16:46 ` [chao-linux:dev 7/7] fs/f2fs/f2fs.h:4027:13: warning: declaration of 'struct extent_info_unaligned' will not be visible outside of this function 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=202107300020.FE9fsfkv-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.