All of lore.kernel.org
 help / color / mirror / Atom feed
* fs/bcachefs/journal.c:884:17: sparse: sparse: cast to non-scalar
@ 2024-11-03  5:35 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2024-11-03  5:35 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:   11066801dd4b7c4d75fce65c812723a80c1481ae
commit: 1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a bcachefs: Initial commit
date:   1 year ago
config: arm64-randconfig-r122-20241102 (https://download.01.org/0day-ci/archive/20241103/202411031315.IurXMwtn-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 639a7ac648f1e50ccd2556e17d401c04f9cce625)
reproduce: (https://download.01.org/0day-ci/archive/20241103/202411031315.IurXMwtn-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/202411031315.IurXMwtn-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   fs/bcachefs/journal.c: note: in included file (through fs/bcachefs/bcachefs.h):
   fs/bcachefs/bcachefs_format.h:1022:42: sparse: sparse: array of flexible structures
>> fs/bcachefs/journal.c:884:17: sparse: sparse: cast to non-scalar
>> fs/bcachefs/journal.c:884:17: sparse: sparse: cast from non-scalar
   fs/bcachefs/journal.c:150:9: sparse: sparse: context imbalance in 'journal_buf_switch' - unexpected unlock
   fs/bcachefs/journal.c:271:13: sparse: sparse: context imbalance in 'journal_flush_write' - wrong count at exit
   fs/bcachefs/journal.c:329:35: sparse: sparse: context imbalance in '__journal_res_get' - different lock contexts for basic block
   fs/bcachefs/journal.c:509:6: sparse: sparse: context imbalance in 'bch2_journal_flush_seq_async' - different lock contexts for basic block
   fs/bcachefs/journal.c:570:12: sparse: sparse: context imbalance in 'journal_seq_flushed' - different lock contexts for basic block
   fs/bcachefs/journal.c: note: in included file (through arch/arm64/include/asm/smp.h, include/linux/smp.h, include/linux/lockdep.h, ...):
   arch/arm64/include/asm/percpu.h:127:1: sparse: sparse: cast truncates bits from constant value (ffffffff becomes ff)
   arch/arm64/include/asm/percpu.h:127:1: sparse: sparse: cast truncates bits from constant value (ffffffff becomes ffff)
   arch/arm64/include/asm/percpu.h:127:1: sparse: sparse: cast truncates bits from constant value (ffffffff becomes ff)
   arch/arm64/include/asm/percpu.h:127:1: sparse: sparse: cast truncates bits from constant value (ffffffff becomes ffff)
   arch/arm64/include/asm/percpu.h:127:1: sparse: sparse: cast truncates bits from constant value (ffffffff becomes ff)
   arch/arm64/include/asm/percpu.h:127:1: sparse: sparse: cast truncates bits from constant value (ffffffff becomes ffff)
   arch/arm64/include/asm/percpu.h:127:1: sparse: sparse: cast truncates bits from constant value (ffffffff becomes ff)
   arch/arm64/include/asm/percpu.h:127:1: sparse: sparse: cast truncates bits from constant value (ffffffff becomes ffff)
   fs/bcachefs/journal.c:797:17: sparse: sparse: context imbalance in '__bch2_set_nr_journal_buckets' - different lock contexts for basic block

vim +884 fs/bcachefs/journal.c

   876	
   877	static bool bch2_journal_writing_to_device(struct journal *j, unsigned dev_idx)
   878	{
   879		union journal_res_state state;
   880		struct journal_buf *w;
   881		bool ret;
   882	
   883		spin_lock(&j->lock);
 > 884		state = READ_ONCE(j->reservations);
   885		w = j->buf + !state.idx;
   886	
   887		ret = state.prev_buf_unwritten &&
   888			bch2_extent_has_device(bkey_i_to_s_c_extent(&w->key), dev_idx);
   889		spin_unlock(&j->lock);
   890	
   891		return ret;
   892	}
   893	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread
* fs/bcachefs/journal.c:884:17: sparse: sparse: cast to non-scalar
@ 2023-12-04 18:37 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2023-12-04 18:37 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence static check warning: fs/bcachefs/journal.c:884:17: sparse: sparse: cast to non-scalar"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Kent Overstreet <kmo@daterainc.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   33cc938e65a98f1d29d0a18403dbbee050dcad9a
commit: 1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a bcachefs: Initial commit
date:   6 weeks ago
:::::: branch date: 33 hours ago
:::::: commit date: 6 weeks ago
config: alpha-randconfig-r112-20231118 (https://download.01.org/0day-ci/archive/20231205/202312050248.o8GjHsTq-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231205/202312050248.o8GjHsTq-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/r/202312050248.o8GjHsTq-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   fs/bcachefs/journal.c: note: in included file (through fs/bcachefs/bcachefs.h):
   fs/bcachefs/bcachefs_format.h:1022:42: sparse: sparse: array of flexible structures
>> fs/bcachefs/journal.c:884:17: sparse: sparse: cast to non-scalar
>> fs/bcachefs/journal.c:884:17: sparse: sparse: cast from non-scalar
   fs/bcachefs/journal.c:150:9: sparse: sparse: context imbalance in 'journal_buf_switch' - unexpected unlock
   fs/bcachefs/journal.c:271:13: sparse: sparse: context imbalance in 'journal_flush_write' - wrong count at exit
   fs/bcachefs/journal.c:329:35: sparse: sparse: context imbalance in '__journal_res_get' - different lock contexts for basic block
   fs/bcachefs/journal.c:509:6: sparse: sparse: context imbalance in 'bch2_journal_flush_seq_async' - different lock contexts for basic block
   fs/bcachefs/journal.c:570:12: sparse: sparse: context imbalance in 'journal_seq_flushed' - different lock contexts for basic block
   fs/bcachefs/journal.c:797:17: sparse: sparse: context imbalance in '__bch2_set_nr_journal_buckets' - different lock contexts for basic block

vim +884 fs/bcachefs/journal.c

1c6fdbd8f2465d Kent Overstreet 2017-03-16  876  
1c6fdbd8f2465d Kent Overstreet 2017-03-16  877  static bool bch2_journal_writing_to_device(struct journal *j, unsigned dev_idx)
1c6fdbd8f2465d Kent Overstreet 2017-03-16  878  {
1c6fdbd8f2465d Kent Overstreet 2017-03-16  879  	union journal_res_state state;
1c6fdbd8f2465d Kent Overstreet 2017-03-16  880  	struct journal_buf *w;
1c6fdbd8f2465d Kent Overstreet 2017-03-16  881  	bool ret;
1c6fdbd8f2465d Kent Overstreet 2017-03-16  882  
1c6fdbd8f2465d Kent Overstreet 2017-03-16  883  	spin_lock(&j->lock);
1c6fdbd8f2465d Kent Overstreet 2017-03-16 @884  	state = READ_ONCE(j->reservations);
1c6fdbd8f2465d Kent Overstreet 2017-03-16  885  	w = j->buf + !state.idx;
1c6fdbd8f2465d Kent Overstreet 2017-03-16  886  
1c6fdbd8f2465d Kent Overstreet 2017-03-16  887  	ret = state.prev_buf_unwritten &&
1c6fdbd8f2465d Kent Overstreet 2017-03-16  888  		bch2_extent_has_device(bkey_i_to_s_c_extent(&w->key), dev_idx);
1c6fdbd8f2465d Kent Overstreet 2017-03-16  889  	spin_unlock(&j->lock);
1c6fdbd8f2465d Kent Overstreet 2017-03-16  890  
1c6fdbd8f2465d Kent Overstreet 2017-03-16  891  	return ret;
1c6fdbd8f2465d Kent Overstreet 2017-03-16  892  }
1c6fdbd8f2465d Kent Overstreet 2017-03-16  893  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread
* fs/bcachefs/journal.c:884:17: sparse: sparse: cast to non-scalar
@ 2023-11-18  3:49 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2023-11-18  3:49 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence static check warning: fs/bcachefs/journal.c:884:17: sparse: sparse: cast to non-scalar"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Kent Overstreet <kmo@daterainc.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   791c8ab095f71327899023223940dd52257a4173
commit: 1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a bcachefs: Initial commit
date:   4 weeks ago
:::::: branch date: 5 hours ago
:::::: commit date: 4 weeks ago
config: alpha-randconfig-r112-20231118 (https://download.01.org/0day-ci/archive/20231118/202311181131.i1dhiz1S-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231118/202311181131.i1dhiz1S-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/r/202311181131.i1dhiz1S-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   fs/bcachefs/journal.c: note: in included file (through fs/bcachefs/bcachefs.h):
   fs/bcachefs/bcachefs_format.h:1022:42: sparse: sparse: array of flexible structures
>> fs/bcachefs/journal.c:884:17: sparse: sparse: cast to non-scalar
>> fs/bcachefs/journal.c:884:17: sparse: sparse: cast from non-scalar
   fs/bcachefs/journal.c:150:9: sparse: sparse: context imbalance in 'journal_buf_switch' - unexpected unlock
   fs/bcachefs/journal.c:271:13: sparse: sparse: context imbalance in 'journal_flush_write' - wrong count at exit
   fs/bcachefs/journal.c:329:35: sparse: sparse: context imbalance in '__journal_res_get' - different lock contexts for basic block
   fs/bcachefs/journal.c:509:6: sparse: sparse: context imbalance in 'bch2_journal_flush_seq_async' - different lock contexts for basic block
   fs/bcachefs/journal.c:570:12: sparse: sparse: context imbalance in 'journal_seq_flushed' - different lock contexts for basic block
   fs/bcachefs/journal.c:797:17: sparse: sparse: context imbalance in '__bch2_set_nr_journal_buckets' - different lock contexts for basic block

vim +884 fs/bcachefs/journal.c

1c6fdbd8f2465d Kent Overstreet 2017-03-16  876  
1c6fdbd8f2465d Kent Overstreet 2017-03-16  877  static bool bch2_journal_writing_to_device(struct journal *j, unsigned dev_idx)
1c6fdbd8f2465d Kent Overstreet 2017-03-16  878  {
1c6fdbd8f2465d Kent Overstreet 2017-03-16  879  	union journal_res_state state;
1c6fdbd8f2465d Kent Overstreet 2017-03-16  880  	struct journal_buf *w;
1c6fdbd8f2465d Kent Overstreet 2017-03-16  881  	bool ret;
1c6fdbd8f2465d Kent Overstreet 2017-03-16  882  
1c6fdbd8f2465d Kent Overstreet 2017-03-16  883  	spin_lock(&j->lock);
1c6fdbd8f2465d Kent Overstreet 2017-03-16 @884  	state = READ_ONCE(j->reservations);
1c6fdbd8f2465d Kent Overstreet 2017-03-16  885  	w = j->buf + !state.idx;
1c6fdbd8f2465d Kent Overstreet 2017-03-16  886  
1c6fdbd8f2465d Kent Overstreet 2017-03-16  887  	ret = state.prev_buf_unwritten &&
1c6fdbd8f2465d Kent Overstreet 2017-03-16  888  		bch2_extent_has_device(bkey_i_to_s_c_extent(&w->key), dev_idx);
1c6fdbd8f2465d Kent Overstreet 2017-03-16  889  	spin_unlock(&j->lock);
1c6fdbd8f2465d Kent Overstreet 2017-03-16  890  
1c6fdbd8f2465d Kent Overstreet 2017-03-16  891  	return ret;
1c6fdbd8f2465d Kent Overstreet 2017-03-16  892  }
1c6fdbd8f2465d Kent Overstreet 2017-03-16  893  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-03  5:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-03  5:35 fs/bcachefs/journal.c:884:17: sparse: sparse: cast to non-scalar kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2023-12-04 18:37 kernel test robot
2023-11-18  3:49 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.