[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202411031315.IurXMwtn-lkp@intel.com>
Date: Sun, 3 Nov 2024 13:35:33 +0800
From: kernel test robot <lkp@...el.com>
To: Kent Overstreet <kent.overstreet@...ux.dev>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: fs/bcachefs/journal.c:884:17: sparse: sparse: cast to non-scalar
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@...el.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
Powered by blists - more mailing lists