* [linux-next:master 1707/2217] fs/bcachefs/super-io.c:661:5: warning: no previous prototype for function '__bch2_read_super'
@ 2023-11-21 7:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-21 7:44 UTC (permalink / raw)
To: Daniel Hill
Cc: llvm, oe-kbuild-all, Linux Memory Management List, Kent Overstreet
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 07b677953b9dca02928be323e2db853511305fa9
commit: 700b6aa33cac353aadde200e10391ec19905451c [1707/2217] bcachefs: add a quieter bch2_read_super
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231121/202311211543.cJzjS2Ky-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231121/202311211543.cJzjS2Ky-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/202311211543.cJzjS2Ky-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> fs/bcachefs/super-io.c:661:5: warning: no previous prototype for function '__bch2_read_super' [-Wmissing-prototypes]
int __bch2_read_super(const char *path, struct bch_opts *opts,
^
fs/bcachefs/super-io.c:661:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __bch2_read_super(const char *path, struct bch_opts *opts,
^
static
1 warning generated.
vim +/__bch2_read_super +661 fs/bcachefs/super-io.c
660
> 661 int __bch2_read_super(const char *path, struct bch_opts *opts,
662 struct bch_sb_handle *sb, bool ignore_notbchfs_msg)
663 {
664 u64 offset = opt_get(*opts, sb);
665 struct bch_sb_layout layout;
666 struct printbuf err = PRINTBUF;
667 struct printbuf err2 = PRINTBUF;
668 __le64 *i;
669 int ret;
670 #ifndef __KERNEL__
671 retry:
672 #endif
673 memset(sb, 0, sizeof(*sb));
674 sb->mode = BLK_OPEN_READ;
675 sb->have_bio = true;
676 sb->holder = kmalloc(1, GFP_KERNEL);
677 if (!sb->holder)
678 return -ENOMEM;
679
680 sb->sb_name = kstrdup(path, GFP_KERNEL);
681 if (!sb->sb_name)
682 return -ENOMEM;
683
--
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:[~2023-11-21 7:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21 7:44 [linux-next:master 1707/2217] fs/bcachefs/super-io.c:661:5: warning: no previous prototype for function '__bch2_read_super' 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