lkml.org 
[lkml]   [2021]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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
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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-07-29 18:46    [W:0.039 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site