* [chao:bugfix/syzbot 40/42] fs/f2fs/f2fs.h:4605:5: warning: no previous prototype for function 'f2fs_build_fault_attr'
@ 2024-05-06 21:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-06 21:25 UTC (permalink / raw)
To: Chao Yu, Chao Yu; +Cc: llvm, oe-kbuild-all, Chao Yu, Chao Yu
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git bugfix/syzbot
head: 6fd891b7248d0b825dbff6454be21f60c7ba1fb0
commit: 28a4fc03f837d64c67eeeba5ef226dbed4b369dc [40/42] f2fs: check validation of fault attrs in f2fs_build_fault_attr()
config: x86_64-buildonly-randconfig-005-20240507 (https://download.01.org/0day-ci/archive/20240507/202405070512.zeqTIFxN-lkp@intel.com/config)
compiler: clang version 18.1.4 (https://github.com/llvm/llvm-project e6c3289804a67ea0bb6a86fadbe454dd93b8d855)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240507/202405070512.zeqTIFxN-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405070512.zeqTIFxN-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from fs/f2fs/hash.c:18:
>> fs/f2fs/f2fs.h:4605:5: warning: no previous prototype for function 'f2fs_build_fault_attr' [-Wmissing-prototypes]
4605 | int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned long rate,
| ^
fs/f2fs/f2fs.h:4605:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
4605 | int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned long rate,
| ^
| static
1 warning generated.
--
In file included from fs/f2fs/node.c:16:
>> fs/f2fs/f2fs.h:4605:5: warning: no previous prototype for function 'f2fs_build_fault_attr' [-Wmissing-prototypes]
4605 | int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned long rate,
| ^
fs/f2fs/f2fs.h:4605:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
4605 | int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned long rate,
| ^
| static
fs/f2fs/node.c:1357:1: warning: unused label 'out_dec' [-Wunused-label]
1357 | out_dec:
| ^~~~~~~~
2 warnings generated.
vim +/f2fs_build_fault_attr +4605 fs/f2fs/f2fs.h
4600
4601 #ifdef CONFIG_F2FS_FAULT_INJECTION
4602 extern int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned long rate,
4603 unsigned long type);
4604 #else
> 4605 int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned long rate,
4606 unsigned long type)
4607 {
4608 return 0;
4609 }
4610 #endif
4611
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-06 21:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-06 21:25 [chao:bugfix/syzbot 40/42] fs/f2fs/f2fs.h:4605:5: warning: no previous prototype for function 'f2fs_build_fault_attr' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox