From: kernel test robot <lkp@intel.com>
To: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
Subject: [chao:bugfix/syzbot 40/42] fs/f2fs/f2fs.h:4605:5: warning: no previous prototype for function 'f2fs_build_fault_attr'
Date: Tue, 7 May 2024 05:25:43 +0800 [thread overview]
Message-ID: <202405070512.zeqTIFxN-lkp@intel.com> (raw)
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
reply other threads:[~2024-05-06 21:26 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=202405070512.zeqTIFxN-lkp@intel.com \
--to=lkp@intel.com \
--cc=chao@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yuchao0@huawei.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox