linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 15829/16064] fs/bcachefs/disk_groups.c:534:6: warning: no previous declaration for 'bch2_target_to_text_sb'
@ 2023-11-01 10:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-01 10:56 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: oe-kbuild-all, Linux Memory Management List

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: x86_64-randconfig-001-20231101 (https://download.01.org/0day-ci/archive/20231101/202311011824.HYApSA1M-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231101/202311011824.HYApSA1M-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/202311011824.HYApSA1M-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> fs/bcachefs/disk_groups.c:534:6: warning: no previous declaration for 'bch2_target_to_text_sb' [-Wmissing-declarations]
    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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-01 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-01 10:56 [linux-next:master 15829/16064] fs/bcachefs/disk_groups.c:534:6: warning: no previous declaration for 'bch2_target_to_text_sb' 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;
as well as URLs for NNTP newsgroup(s).