[linux-next:master 3379/3551] fs/bcachefs/buckets.c:316:21: sparse: sparse: symbol 'bucket_m_to_alloc' was not declared. Should it be static?

[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:   48bbaf8b793e0770798519f8ee1ea2908ff0943a
commit: 8192d6956cb6798c4cb28d35712373c9af7897bf [3379/3551] bcachefs: New bucket sector count helpers
config: i386-randconfig-062-20231127 (https://download.01.org/0day-ci/archive/20231127/202311271915.K18wKCP3-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/20231127/202311271915.K18wKCP3-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/202311271915.K18wKCP3-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
   fs/bcachefs/buckets.c: note: in included file:
   fs/bcachefs/bcachefs.h:965:9: sparse: sparse: array of flexible structures
   fs/bcachefs/buckets.c: note: in included file (through fs/bcachefs/btree_types.h, fs/bcachefs/bcachefs.h):
   fs/bcachefs/replicas_types.h:24:34: sparse: sparse: array of flexible structures
>> fs/bcachefs/buckets.c:316:21: sparse: sparse: symbol 'bucket_m_to_alloc' was not declared. Should it be static?

vim +/bucket_m_to_alloc +316 fs/bcachefs/buckets.c

   315	
 > 316	struct bch_alloc_v4 bucket_m_to_alloc(struct bucket b)
   317	{
   318		return (struct bch_alloc_v4) {
   319			.gen		= b.gen,
   320			.data_type	= b.data_type,
   321			.dirty_sectors	= b.dirty_sectors,
   322			.cached_sectors	= b.cached_sectors,
   323			.stripe		= b.stripe,
   324		};
   325	}
   326	

-- 
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