linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Hill <daniel@gluo.nz>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Kent Overstreet <kmo@daterainc.com>
Subject: [linux-next:master 1707/2217] fs/bcachefs/super-io.c:661:5: warning: no previous prototype for '__bch2_read_super'
Date: Wed, 22 Nov 2023 00:56:47 +0800	[thread overview]
Message-ID: <202311220009.ykeIWLVS-lkp@intel.com> (raw)

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@intel.com/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@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/202311220009.ykeIWLVS-lkp@intel.com/

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


                 reply	other threads:[~2023-11-21 16:57 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=202311220009.ykeIWLVS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel@gluo.nz \
    --cc=kmo@daterainc.com \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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