linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kent Overstreet <kmo@daterainc.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 15829/16064] fs/bcachefs/disk_groups.c:534:6: warning: no previous prototype for 'bch2_target_to_text_sb'
Date: Wed, 1 Nov 2023 16:30:23 +0800	[thread overview]
Message-ID: <202311011659.fOMoFPWP-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   fa7d0c17278644aa691f96d08bef8001b762f9cd
commit: bf0d9e89de2e62fe9967ebb77b68d58d3812e4db [15829/16064] bcachefs: Split apart bch2_target_to_text(), bch2_target_to_text_sb()
config: powerpc64-randconfig-001-20231101 (https://download.01.org/0day-ci/archive/20231101/202311011659.fOMoFPWP-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231101/202311011659.fOMoFPWP-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/202311011659.fOMoFPWP-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from fs/bcachefs/bcachefs.h:206,
                    from fs/bcachefs/disk_groups.c:2:
   fs/bcachefs/bcachefs_format.h:215:25: warning: 'p' offset 3 in 'struct bkey' isn't aligned to 4 [-Wpacked-not-aligned]
     215 |         struct bpos     p;
         |                         ^
   fs/bcachefs/bcachefs_format.h:217:25: warning: 'version' offset 27 in 'struct bkey' isn't aligned to 4 [-Wpacked-not-aligned]
     217 |         struct bversion version;
         |                         ^~~~~~~
>> fs/bcachefs/disk_groups.c:534:6: warning: no previous prototype for 'bch2_target_to_text_sb' [-Wmissing-prototypes]
     534 | void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v)
         |      ^~~~~~~~~~~~~~~~~~~~~~


vim +/bch2_target_to_text_sb +534 fs/bcachefs/disk_groups.c

   533	
 > 534	void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v)
   535	{
   536		struct target t = target_decode(v);
   537	
   538		switch (t.type) {
   539		case TARGET_NULL:
   540			prt_printf(out, "none");
   541			break;
   542		case TARGET_DEV: {
   543			struct bch_member m = bch2_sb_member_get(sb, t.dev);
   544	
   545			if (bch2_dev_exists(sb, t.dev)) {
   546				prt_printf(out, "Device ");
   547				pr_uuid(out, m.uuid.b);
   548				prt_printf(out, " (%u)", t.dev);
   549			} else {
   550				prt_printf(out, "Bad device %u", t.dev);
   551			}
   552			break;
   553		}
   554		case TARGET_GROUP:
   555			bch2_disk_path_to_text(out, sb, t.group);
   556			break;
   557		default:
   558			BUG();
   559		}
   560	}
   561	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


                 reply	other threads:[~2023-11-01  8:31 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=202311011659.fOMoFPWP-lkp@intel.com \
    --to=lkp@intel.com \
    --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