[linux-next:master 1707/2217] fs/bcachefs/super-io.c:661:5: warning: no previous prototype for '__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: i386-randconfig-141-20231121 (https://download.01.org/0day-ci/archive/20231122/202311220009.ykeIWLVS-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231122/202311220009.ykeIWLVS-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/202311220009.ykeIWLVS-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from fs/bcachefs/bcachefs.h:421,
                    from fs/bcachefs/super-io.c:3:
   fs/bcachefs/btree_write_buffer_types.h:23:9: warning: alignment 1 of 'struct <anonymous>' is less than 4 [-Wpacked-not-aligned]
      23 |         } __packed;
         |         ^
   fs/bcachefs/btree_write_buffer_types.h:16:49: warning: 'pos' offset 3 in 'struct <anonymous>' isn't aligned to 4 [-Wpacked-not-aligned]
      16 |                 struct bpos                     pos;
         |                                                 ^~~
   In file included from fs/bcachefs/super-io.c:8:
   fs/bcachefs/error.h: In function 'bch2_bkey_fsck_err':
   fs/bcachefs/error.h:168:9: warning: function 'bch2_bkey_fsck_err' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
     168 |         prt_vprintf(err_msg, fmt, args);
         |         ^~~~~~~~~~~
   fs/bcachefs/super-io.c: At top level:
>> fs/bcachefs/super-io.c:661:5: warning: no previous prototype for '__bch2_read_super' [-Wmissing-prototypes]
     661 | int __bch2_read_super(const char *path, struct bch_opts *opts,
         |     ^~~~~~~~~~~~~~~~~


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