All of lore.kernel.org
 help / color / mirror / Atom feed
* [bcachefs:master 36/38] fs/bcachefs/recovery_passes.c:120:16: sparse: sparse: incorrect type in initializer (different base types)
@ 2024-03-31 17:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-31 17:27 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: oe-kbuild-all, Kent Overstreet

tree:   https://evilpiepirate.org/git/bcachefs.git master
head:   a097468ffe82f16528ddb9ed6ae95baacf633858
commit: c298bc7b038f31ad189069bb146e8f935c508500 [36/38] bcachefs: bch2_run_explicit_recovery_pass_persistent()
config: x86_64-randconfig-121-20240331 (https://download.01.org/0day-ci/archive/20240401/202404010140.vvxpncUw-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240401/202404010140.vvxpncUw-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/202404010140.vvxpncUw-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   fs/bcachefs/recovery_passes.c: note: in included file:
   fs/bcachefs/bcachefs.h:1023:9: sparse: sparse: array of flexible structures
>> fs/bcachefs/recovery_passes.c:120:16: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned long long [usertype] s @@     got restricted __le64 [usertype] @@
   fs/bcachefs/recovery_passes.c:120:16: sparse:     expected unsigned long long [usertype] s
   fs/bcachefs/recovery_passes.c:120:16: sparse:     got restricted __le64 [usertype]
>> fs/bcachefs/recovery_passes.c:125:44: sparse: sparse: restricted __le64 degrades to integer
>> fs/bcachefs/recovery_passes.c:126:50: sparse: sparse: invalid assignment: |=
   fs/bcachefs/recovery_passes.c:126:50: sparse:    left side has type restricted __le64
   fs/bcachefs/recovery_passes.c:126:50: sparse:    right side has type unsigned long long
   fs/bcachefs/recovery_passes.c:43:9: sparse: sparse: self-comparison always evaluates to false

vim +120 fs/bcachefs/recovery_passes.c

   116	
   117	int bch2_run_explicit_recovery_pass_persistent(struct bch_fs *c,
   118						       enum bch_recovery_pass pass)
   119	{
 > 120		u64 s =cpu_to_le64(bch2_recovery_passes_to_stable(BIT_ULL(pass)));
   121	
   122		mutex_lock(&c->sb_lock);
   123		struct bch_sb_field_ext *ext = bch2_sb_field_get(c->disk_sb.sb, ext);
   124	
 > 125		if (!(ext->recovery_passes_required[0] & s)) {
 > 126			ext->recovery_passes_required[0] |= s;
   127			bch2_write_super(c);
   128		}
   129		mutex_unlock(&c->sb_lock);
   130	
   131		return bch2_run_explicit_recovery_pass(c, pass);
   132	}
   133	

-- 
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:[~2024-03-31 17:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-31 17:27 [bcachefs:master 36/38] fs/bcachefs/recovery_passes.c:120:16: sparse: sparse: incorrect type in initializer (different base types) kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.