[linux-next:master 10220/11156] fs/f2fs/segment.c:4912:12: sparse: sparse: symbol 'f2fs_zone_status' was not declared. Should it be static?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jaegeuk,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f303a3e2bcfba900efb5aee55236d17030e9f882
commit: 4b0d87ebb87528029a8ca6074fd035f252194395 [10220/11156] f2fs: print zone status in string and some log
config: powerpc-randconfig-r121-20240229 (https://download.01.org/0day-ci/archive/20240301/202403011059.7pTCPJX9-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240301/202403011059.7pTCPJX9-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/202403011059.7pTCPJX9-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> fs/f2fs/segment.c:4912:12: sparse: sparse: symbol 'f2fs_zone_status' was not declared. Should it be static?
   fs/f2fs/segment.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
   include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false
   fs/f2fs/segment.c: note: in included file (through include/linux/wait.h, include/linux/wait_bit.h, include/linux/fs.h):
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true

vim +/f2fs_zone_status +4912 fs/f2fs/segment.c

  4910	
  4911	#ifdef CONFIG_BLK_DEV_ZONED
> 4912	const char *f2fs_zone_status[BLK_ZONE_COND_OFFLINE + 1] = {
  4913		[BLK_ZONE_COND_NOT_WP]		= "NOT_WP",
  4914		[BLK_ZONE_COND_EMPTY]		= "EMPTY",
  4915		[BLK_ZONE_COND_IMP_OPEN]	= "IMPLICITE_OPEN",
  4916		[BLK_ZONE_COND_EXP_OPEN]	= "EXPLICITE_OPEN",
  4917		[BLK_ZONE_COND_CLOSED]		= "CLOSED",
  4918		[BLK_ZONE_COND_READONLY]	= "READONLY",
  4919		[BLK_ZONE_COND_FULL]		= "FULL",
  4920		[BLK_ZONE_COND_OFFLINE]		= "OFFLINE",
  4921	};
  4922	

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