fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces)

From: kernel test robot
Date: Thu Nov 09 2023 - 13:50:29 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6bc986ab839c844e78a2333a02e55f02c9e57935
commit: 7e94eeffe0e79a54e525ad05302eb454fb96affd bcachefs: Inline fastpath of bch2_disk_reservation_add()
date: 3 weeks ago
config: loongarch-randconfig-r132-20231107 (https://download.01.org/0day-ci/archive/20231110/202311100231.vnhbJRVp-lkp@xxxxxxxxx/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231110/202311100231.vnhbJRVp-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/202311100231.vnhbJRVp-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
fs/bcachefs/extent_update.c: note: in included file:
fs/bcachefs/bcachefs.h:786:9: sparse: sparse: array of flexible structures
fs/bcachefs/extent_update.c: note: in included file:
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
--
fs/bcachefs/btree_update_interior.c: note: in included file (through fs/bcachefs/bcachefs.h):
fs/bcachefs/bcachefs_format.h:1101:45: sparse: sparse: array of flexible structures
fs/bcachefs/bcachefs_format.h:1116:42: sparse: sparse: array of flexible structures
fs/bcachefs/btree_update_interior.c: note: in included file:
fs/bcachefs/bcachefs.h:786:9: sparse: sparse: array of flexible structures
fs/bcachefs/btree_update_interior.c:1810:6: sparse: sparse: symbol 'async_btree_node_rewrite_work' was not declared. Should it be static?
fs/bcachefs/btree_update_interior.c: note: in included file:
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
fs/bcachefs/btree_update_interior.c: note: in included file:
fs/bcachefs/btree_cache.h:45:54: sparse: sparse: incorrect type in return expression (different base types) @@ expected unsigned long long @@ got restricted __le64 const [usertype] seq @@
fs/bcachefs/btree_cache.h:45:54: sparse: expected unsigned long long
fs/bcachefs/btree_cache.h:45:54: sparse: got restricted __le64 const [usertype] seq
fs/bcachefs/btree_cache.h:45:54: sparse: sparse: incorrect type in return expression (different base types) @@ expected unsigned long long @@ got restricted __le64 const [usertype] seq @@
fs/bcachefs/btree_cache.h:45:54: sparse: expected unsigned long long
fs/bcachefs/btree_cache.h:45:54: sparse: got restricted __le64 const [usertype] seq
--
fs/bcachefs/ec.c: note: in included file (through fs/bcachefs/bcachefs.h):
fs/bcachefs/bcachefs_format.h:1101:45: sparse: sparse: array of flexible structures
fs/bcachefs/bcachefs_format.h:1116:42: sparse: sparse: array of flexible structures
fs/bcachefs/ec.c:401:26: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted blk_opf_t [usertype] opf @@ got unsigned int rw @@
fs/bcachefs/ec.c:401:26: sparse: expected restricted blk_opf_t [usertype] opf
fs/bcachefs/ec.c:401:26: sparse: got unsigned int rw
fs/bcachefs/ec.c: note: in included file:
fs/bcachefs/bcachefs.h:786:9: sparse: sparse: array of flexible structures
fs/bcachefs/ec.c:401:26: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted blk_opf_t [usertype] opf @@ got unsigned int rw @@
fs/bcachefs/ec.c:401:26: sparse: expected restricted blk_opf_t [usertype] opf
fs/bcachefs/ec.c:401:26: sparse: got unsigned int rw
fs/bcachefs/ec.c:401:26: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted blk_opf_t [usertype] opf @@ got unsigned int rw @@
fs/bcachefs/ec.c:401:26: sparse: expected restricted blk_opf_t [usertype] opf
fs/bcachefs/ec.c:401:26: sparse: got unsigned int rw
fs/bcachefs/ec.c:499:37: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int rw @@ got restricted blk_opf_t @@
fs/bcachefs/ec.c:499:37: sparse: expected unsigned int rw
fs/bcachefs/ec.c:499:37: sparse: got restricted blk_opf_t
fs/bcachefs/ec.c:934:48: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int rw @@ got restricted blk_opf_t @@
fs/bcachefs/ec.c:934:48: sparse: expected unsigned int rw
fs/bcachefs/ec.c:934:48: sparse: got restricted blk_opf_t
fs/bcachefs/ec.c:1243:23: sparse: sparse: symbol '__bch2_ec_stripe_head_get' was not declared. Should it be static?
fs/bcachefs/ec.c:1423:9: sparse: sparse: restricted __le16 degrades to integer
fs/bcachefs/ec.c: note: in included file:
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
--
fs/bcachefs/journal.c: note: in included file (through fs/bcachefs/bcachefs.h):
fs/bcachefs/bcachefs_format.h:1101:45: sparse: sparse: array of flexible structures
fs/bcachefs/bcachefs_format.h:1116:42: sparse: sparse: array of flexible structures
fs/bcachefs/journal.c: note: in included file:
fs/bcachefs/bcachefs.h:786:9: sparse: sparse: array of flexible structures
fs/bcachefs/journal.c:861:17: sparse: sparse: context imbalance in '__bch2_set_nr_journal_buckets' - different lock contexts for basic block
fs/bcachefs/journal.c: note: in included file:
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
--
fs/bcachefs/move.c: note: in included file (through fs/bcachefs/bcachefs.h):
fs/bcachefs/bcachefs_format.h:1101:45: sparse: sparse: array of flexible structures
fs/bcachefs/bcachefs_format.h:1116:42: sparse: sparse: array of flexible structures
fs/bcachefs/move.c: note: in included file:
fs/bcachefs/bcachefs.h:786:9: sparse: sparse: array of flexible structures
fs/bcachefs/move.c:928:42: sparse: sparse: invalid assignment: |=
fs/bcachefs/move.c:928:42: sparse: left side has type restricted __le64
fs/bcachefs/move.c:928:42: sparse: right side has type unsigned long long
fs/bcachefs/move.c:929:42: sparse: sparse: invalid assignment: |=
fs/bcachefs/move.c:929:42: sparse: left side has type restricted __le64
fs/bcachefs/move.c:929:42: sparse: right side has type unsigned long long
fs/bcachefs/move.c: note: in included file (through fs/bcachefs/super.h, fs/bcachefs/buckets.h):
fs/bcachefs/extents.h:145:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:145:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:145:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:159:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:159:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:159:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/extents.h:145:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:145:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:145:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:159:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:159:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:159:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/move.c: note: in included file:
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
fs/bcachefs/move.c: note: in included file (through fs/bcachefs/super.h, fs/bcachefs/buckets.h):
fs/bcachefs/extents.h:145:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:145:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:145:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:159:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:159:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:159:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/extents.h:145:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:145:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:145:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:159:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:159:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:159:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/move.c: note: in included file:
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
fs/bcachefs/move.c: note: in included file (through fs/bcachefs/super.h, fs/bcachefs/buckets.h):
fs/bcachefs/extents.h:145:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:145:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:145:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:159:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:159:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:159:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/extents.h:145:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:145:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:145:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:159:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:159:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:159:44: sparse: got unsigned long long const [usertype] csum_hi:16
--
fs/bcachefs/fs-io.c: note: in included file (through fs/bcachefs/bcachefs.h):
fs/bcachefs/bcachefs_format.h:1101:45: sparse: sparse: array of flexible structures
fs/bcachefs/bcachefs_format.h:1116:42: sparse: sparse: array of flexible structures
fs/bcachefs/fs-io.c: note: in included file:
fs/bcachefs/bcachefs.h:786:9: sparse: sparse: array of flexible structures
fs/bcachefs/fs-io.c:550:13: sparse: sparse: incorrect type in assignment (different base types) @@ expected int ret @@ got restricted vm_fault_t @@
fs/bcachefs/fs-io.c:550:13: sparse: expected int ret
fs/bcachefs/fs-io.c:550:13: sparse: got restricted vm_fault_t
fs/bcachefs/fs-io.c:553:16: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted vm_fault_t @@ got int ret @@
fs/bcachefs/fs-io.c:553:16: sparse: expected restricted vm_fault_t
fs/bcachefs/fs-io.c:553:16: sparse: got int ret
fs/bcachefs/fs-io.c:566:19: sparse: sparse: incorrect type in initializer (different base types) @@ expected int ret @@ got restricted vm_fault_t @@
fs/bcachefs/fs-io.c:566:19: sparse: expected int ret
fs/bcachefs/fs-io.c:566:19: sparse: got restricted vm_fault_t
fs/bcachefs/fs-io.c:586:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected int ret @@ got restricted vm_fault_t @@
fs/bcachefs/fs-io.c:586:21: sparse: expected int ret
fs/bcachefs/fs-io.c:586:21: sparse: got restricted vm_fault_t
fs/bcachefs/fs-io.c:594:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected int ret @@ got restricted vm_fault_t @@
fs/bcachefs/fs-io.c:594:21: sparse: expected int ret
fs/bcachefs/fs-io.c:594:21: sparse: got restricted vm_fault_t
fs/bcachefs/fs-io.c:606:16: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted vm_fault_t @@ got int ret @@
fs/bcachefs/fs-io.c:606:16: sparse: expected restricted vm_fault_t
fs/bcachefs/fs-io.c:606:16: sparse: got int ret
fs/bcachefs/fs-io.c: note: in included file:
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
fs/bcachefs/fs-io.c: note: in included file (through fs/bcachefs/super.h, fs/bcachefs/buckets.h):
fs/bcachefs/extents.h:145:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:145:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:145:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:159:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:159:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:159:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/extents.h:145:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:145:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:145:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:159:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:159:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:159:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/fs-io.c: note: in included file:
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
--
fs/bcachefs/io.c: note: in included file (through fs/bcachefs/bcachefs.h):
fs/bcachefs/bcachefs_format.h:1101:45: sparse: sparse: array of flexible structures
fs/bcachefs/bcachefs_format.h:1116:42: sparse: sparse: array of flexible structures
fs/bcachefs/io.c: note: in included file:
fs/bcachefs/bcachefs.h:786:9: sparse: sparse: array of flexible structures
fs/bcachefs/io.c: note: in included file:
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *
>> fs/bcachefs/buckets.h:282:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned long long [noderef] __percpu * @@
fs/bcachefs/buckets.h:282:23: sparse: expected void *ptr
fs/bcachefs/buckets.h:282:23: sparse: got unsigned long long [noderef] __percpu *

vim +282 fs/bcachefs/buckets.h

271
272 int __bch2_disk_reservation_add(struct bch_fs *,
273 struct disk_reservation *,
274 u64, int);
275
276 static inline int bch2_disk_reservation_add(struct bch_fs *c, struct disk_reservation *res,
277 u64 sectors, int flags)
278 {
279 u64 old, new;
280
281 do {
> 282 old = this_cpu_read(c->pcpu->sectors_available);
283 if (sectors > old)
284 return __bch2_disk_reservation_add(c, res, sectors, flags);
285
286 new = old - sectors;
287 } while (this_cpu_cmpxchg(c->pcpu->sectors_available, old, new) != old);
288
289 this_cpu_add(*c->online_reserved, sectors);
290 res->sectors += sectors;
291 return 0;
292 }
293

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