All of lore.kernel.org
 help / color / mirror / Atom feed
* [kdave-btrfs-devel:ext/aota/zoned-7 124/162] fs/btrfs/zoned.c:40:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
@ 2020-09-15  1:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-09-15  1:39 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2650 bytes --]

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@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/9779d03bb87f2ff3b408bb9c3ac475851dcfd1eb
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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31432 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-15  1:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15  1:39 [kdave-btrfs-devel:ext/aota/zoned-7 124/162] fs/btrfs/zoned.c:40:17: sparse: sparse: incompatible types in comparison expression (different address spaces): 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.