tree:
https://github.com/kdave/btrfs-devel.git ext/aota/zoned-7
head: 17046312f8c0a16a96b4b3a145f4b30be84e6ede
commit: 9779d03bb87f2ff3b408bb9c3ac475851dcfd1eb [124/162] btrfs: Get zone information of
zoned block devices
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 9779d03bb87f2ff3b408bb9c3ac475851dcfd1eb
# 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>
sparse warnings: (new ones prefixed by >>)
> fs/btrfs/zoned.c:40:17: sparse: sparse: incompatible types in
comparison expression (different address spaces):
> fs/btrfs/zoned.c:40:17: sparse: struct rcu_string [noderef] __rcu *
> fs/btrfs/zoned.c:40:17: sparse: struct rcu_string *
fs/btrfs/zoned.c:118:17: sparse: sparse: incompatible types in comparison expression
(different address spaces):
fs/btrfs/zoned.c:118:17: sparse: struct rcu_string [noderef] __rcu *
fs/btrfs/zoned.c:118:17: sparse: struct rcu_string *
fs/btrfs/zoned.c:136:9: sparse: sparse: incompatible types in comparison expression
(different address spaces):
fs/btrfs/zoned.c:136:9: sparse: struct rcu_string [noderef] __rcu *
fs/btrfs/zoned.c:136:9: sparse: struct rcu_string *
#
https://github.com/kdave/btrfs-devel/commit/9779d03bb87f2ff3b408bb9c3ac47...
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 9779d03bb87f2ff3b408bb9c3ac475851dcfd1eb
vim +40 fs/btrfs/zoned.c
28
29 static int btrfs_get_dev_zones(struct btrfs_device *device, u64 pos,
30 struct blk_zone *zones, unsigned int *nr_zones)
31 {
32 int ret;
33
34 if (!*nr_zones)
35 return 0;
36
37 ret = blkdev_report_zones(device->bdev, pos >> SECTOR_SHIFT, *nr_zones,
38 copy_zone_info_cb, zones);
39 if (ret < 0) {
40 btrfs_err_in_rcu(device->fs_info,
41 "get
zone at %llu on %s failed %d", pos,
42 rcu_str_deref(device->name), ret);
43 return ret;
44 }
45 *nr_zones = ret;
46 if (!ret)
47 return -EIO;
48
49 return 0;
50 }
51
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org