[linux-next:master 1707/2217] fs/bcachefs/super-io.c:661:5: warning: no previous prototype for function '__bch2_read_super'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311211543.cJzjS2Ky-lkp@xxxxxxxxx/

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux