tree:
https://github.com/kdave/btrfs-devel.git ext/aota/zoned-7
head: 17046312f8c0a16a96b4b3a145f4b30be84e6ede
commit: d7a064645672c0cb922ca0bc60c687d22f0c1fa4 [132/162] btrfs: implement log-structured
superblock for ZONED mode
config: i386-randconfig-s002-20200914 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout d7a064645672c0cb922ca0bc60c687d22f0c1fa4
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: fs/btrfs/zoned.o: in function `sb_zone_number':
> fs/btrfs/zoned.c:42: undefined reference to `__udivdi3'
> ld: fs/btrfs/zoned.c:42: undefined reference to `__udivdi3'
> ld: fs/btrfs/zoned.c:42: undefined reference to `__udivdi3'
> ld: fs/btrfs/zoned.c:42: undefined reference to `__udivdi3'
> ld: fs/btrfs/zoned.c:42: undefined reference to `__udivdi3'
sparse warnings: (new ones prefixed by >>)
> fs/btrfs/zoned.c:429:29: sparse: sparse: restricted __le64
degrades to integer
fs/btrfs/zoned.c:429:52: sparse: sparse: restricted __le64
degrades to integer
fs/btrfs/zoned.c:61:17: sparse: sparse: incompatible types in comparison expression
(different address spaces):
fs/btrfs/zoned.c:61:17: sparse: struct rcu_string [noderef] __rcu *
fs/btrfs/zoned.c:61:17: sparse: struct rcu_string *
fs/btrfs/zoned.c:142:17: sparse: sparse: incompatible types in comparison expression
(different address spaces):
fs/btrfs/zoned.c:142:17: sparse: struct rcu_string [noderef] __rcu *
fs/btrfs/zoned.c:142:17: sparse: struct rcu_string *
fs/btrfs/zoned.c:165:25: sparse: sparse: incompatible types in comparison expression
(different address spaces):
fs/btrfs/zoned.c:165:25: sparse: struct rcu_string [noderef] __rcu *
fs/btrfs/zoned.c:165:25: sparse: struct rcu_string *
fs/btrfs/zoned.c:175:25: sparse: sparse: incompatible types in comparison expression
(different address spaces):
fs/btrfs/zoned.c:175:25: sparse: struct rcu_string [noderef] __rcu *
fs/btrfs/zoned.c:175:25: sparse: struct rcu_string *
fs/btrfs/zoned.c:194:9: sparse: sparse: incompatible types in comparison expression
(different address spaces):
fs/btrfs/zoned.c:194:9: sparse: struct rcu_string [noderef] __rcu *
fs/btrfs/zoned.c:194:9: sparse: struct rcu_string *
#
https://github.com/kdave/btrfs-devel/commit/d7a064645672c0cb922ca0bc60c68...
git remote add kdave-btrfs-devel
https://github.com/kdave/btrfs-devel.git
git fetch --no-tags kdave-btrfs-devel ext/aota/zoned-7
git checkout d7a064645672c0cb922ca0bc60c687d22f0c1fa4
vim +42 fs/btrfs/zoned.c
28
29 static int sb_write_pointer(struct block_device *bdev, struct blk_zone *zone,
30 u64 *wp_ret);
31
32 static inline u32 sb_zone_number(u64 zone_size, int mirror)
33 {
34 ASSERT(mirror < BTRFS_SUPER_MIRROR_MAX);
35
36 switch (mirror) {
37 case 0:
38 return 0;
39 case 1:
40 return 16;
41 case 2:
42 return min(btrfs_sb_offset(mirror) / zone_size, 1024ULL);
43 default:
44 BUG();
45 }
46
47 return 0;
48 }
49
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org