public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* fs/bcachefs/sb-members.c:422:30: sparse: sparse: incorrect type in assignment (different base types)
@ 2024-01-10  7:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-10  7:06 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: oe-kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ab27740f76654ed58dd32ac0ba0031c18a6dea3b
commit: 94119eeb02d114aa1f78dcfaabdca50b9b626790 bcachefs: Add IO error counts to bch_member
date:   10 weeks ago
config: i386-randconfig-061-20240106 (https://download.01.org/0day-ci/archive/20240110/202401101519.MjA7RH59-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/20240110/202401101519.MjA7RH59-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/202401101519.MjA7RH59-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   fs/bcachefs/sb-members.c: note: in included file:
   fs/bcachefs/bcachefs.h:958:9: sparse: sparse: array of flexible structures
>> fs/bcachefs/sb-members.c:422:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le64 [usertype] errors_reset_time @@     got signed long long @@
   fs/bcachefs/sb-members.c:422:30: sparse:     expected restricted __le64 [usertype] errors_reset_time
   fs/bcachefs/sb-members.c:422:30: sparse:     got signed long long

vim +422 fs/bcachefs/sb-members.c

   412	
   413	void bch2_dev_errors_reset(struct bch_dev *ca)
   414	{
   415		struct bch_fs *c = ca->fs;
   416		struct bch_member *m;
   417	
   418		mutex_lock(&c->sb_lock);
   419		m = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx);
   420		for (unsigned i = 0; i < ARRAY_SIZE(m->errors_at_reset); i++)
   421			m->errors_at_reset[i] = cpu_to_le64(atomic64_read(&ca->errors[i]));
 > 422		m->errors_reset_time = ktime_get_real_seconds();

-- 
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-01-10  7:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10  7:06 fs/bcachefs/sb-members.c:422:30: sparse: sparse: incorrect type in assignment (different base types) 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