[chao-linux:dev 5/9] fs/f2fs/f2fs.h:4026:13: warning: 'struct extent_info_unaligned' declared inside parameter list will not be visible outside of this definition or declaration

From: kernel test robot
Date: Tue Aug 03 2021 - 06:13:19 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev
head: 59154a9e8e9377791052a88a285a925619ce0ed5
commit: c3a40f6a186ba064f95432b308173d0a8fe375dc [5/9] f2fs: extent cache: support unaligned extent
config: h8300-randconfig-r013-20210803 (attached as .config)
compiler: h8300-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=c3a40f6a186ba064f95432b308173d0a8fe375dc
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 c3a40f6a186ba064f95432b308173d0a8fe375dc
# 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=h8300 SHELL=/bin/bash fs/

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

All warnings (new ones prefixed by >>):

In file included from fs/f2fs/dir.c:13:
>> fs/f2fs/f2fs.h:4026:13: warning: 'struct extent_info_unaligned' declared inside parameter list will not be visible outside of this definition or declaration
4026 | struct extent_info_unaligned *eiu);
| ^~~~~~~~~~~~~~~~~~~~~


vim +4026 fs/f2fs/f2fs.h

3992
3993 /*
3994 * extent_cache.c
3995 */
3996 struct rb_entry *f2fs_lookup_rb_tree(struct rb_root_cached *root,
3997 struct rb_entry *cached_re, unsigned int ofs);
3998 struct rb_node **f2fs_lookup_rb_tree_ext(struct f2fs_sb_info *sbi,
3999 struct rb_root_cached *root,
4000 struct rb_node **parent,
4001 unsigned long long key, bool *left_most);
4002 struct rb_node **f2fs_lookup_rb_tree_for_insert(struct f2fs_sb_info *sbi,
4003 struct rb_root_cached *root,
4004 struct rb_node **parent,
4005 unsigned int ofs, bool *leftmost);
4006 struct rb_entry *f2fs_lookup_rb_tree_ret(struct rb_root_cached *root,
4007 struct rb_entry *cached_re, unsigned int ofs,
4008 struct rb_entry **prev_entry, struct rb_entry **next_entry,
4009 struct rb_node ***insert_p, struct rb_node **insert_parent,
4010 bool force, bool *leftmost);
4011 bool f2fs_check_rb_tree_consistence(struct f2fs_sb_info *sbi,
4012 struct rb_root_cached *root, bool check_key);
4013 #ifdef CONFIG_F2FS_FS_COMPRESSION
4014 void f2fs_update_extent_tree_range_unaligned(struct inode *inode,
4015 pgoff_t fofs, block_t blkaddr, unsigned int llen,
4016 unsigned int plen);
4017 #endif
4018 unsigned int f2fs_shrink_extent_tree(struct f2fs_sb_info *sbi, int nr_shrink);
4019 void f2fs_init_extent_tree(struct inode *inode, struct page *ipage);
4020 void f2fs_drop_extent_tree(struct inode *inode);
4021 unsigned int f2fs_destroy_extent_node(struct inode *inode);
4022 void f2fs_destroy_extent_tree(struct inode *inode);
4023 bool f2fs_lookup_extent_cache(struct inode *inode, pgoff_t pgofs,
4024 struct extent_info *ei);
4025 bool f2fs_lookup_extent_cache_unaligned(struct inode *inode, pgoff_t pgofs,
> 4026 struct extent_info_unaligned *eiu);
4027 void f2fs_update_extent_cache(struct dnode_of_data *dn);
4028 void f2fs_update_extent_cache_range(struct dnode_of_data *dn,
4029 pgoff_t fofs, block_t blkaddr, unsigned int len);
4030 void f2fs_init_extent_cache_info(struct f2fs_sb_info *sbi);
4031 int __init f2fs_create_extent_cache(void);
4032 void f2fs_destroy_extent_cache(void);
4033

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip