[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202401080657.UjFnvQgX-lkp@intel.com>
Date: Mon, 8 Jan 2024 06:22:02 +0800
From: kernel test robot <lkp@...el.com>
To: Bart Van Assche <bvanassche@....org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Jens Axboe <axboe@...nel.dk>
Subject: drivers/md/raid1.c:1993:60: sparse: sparse: incorrect type in
argument 5 (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0dd3ee31125508cd67f7e7172247f05b7fd1753a
commit: 4ce4c73f662bdb0ae5bfb058bc7ec6f6829ca078 md/core: Combine two sync_page_io() arguments
date: 1 year, 6 months ago
config: x86_64-randconfig-121-20240107 (https://download.01.org/0day-ci/archive/20240108/202401080657.UjFnvQgX-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240108/202401080657.UjFnvQgX-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/202401080657.UjFnvQgX-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/md/raid1.c:646:24: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:646:24: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:646:24: sparse: struct md_rdev *
drivers/md/raid1.c:777:24: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:777:24: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:777:24: sparse: struct md_rdev *
drivers/md/raid1.c:1223:30: sparse: sparse: incorrect type in initializer (different base types) @@ expected int const op @@ got restricted blk_opf_t enum req_op @@
drivers/md/raid1.c:1223:30: sparse: expected int const op
drivers/md/raid1.c:1223:30: sparse: got restricted blk_opf_t enum req_op
drivers/md/raid1.c:1224:52: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long const do_sync @@ got restricted blk_opf_t @@
drivers/md/raid1.c:1224:52: sparse: expected unsigned long const do_sync
drivers/md/raid1.c:1224:52: sparse: got restricted blk_opf_t
drivers/md/raid1.c:1241:24: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:1241:24: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:1241:24: sparse: struct md_rdev *
drivers/md/raid1.c:1404:40: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:1404:40: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:1404:40: sparse: struct md_rdev *
drivers/md/raid1.c:1635:40: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:1635:40: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:1635:40: sparse: struct md_rdev *
drivers/md/raid1.c:1707:40: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:1707:40: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:1707:40: sparse: struct md_rdev *
drivers/md/raid1.c:1824:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:1824:25: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:1824:25: sparse: struct md_rdev *
drivers/md/raid1.c:1835:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:1835:25: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:1835:25: sparse: struct md_rdev *
>> drivers/md/raid1.c:1993:60: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted blk_opf_t [usertype] opf @@ got int rw @@
drivers/md/raid1.c:2298:32: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:2298:32: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:2298:32: sparse: struct md_rdev *
drivers/md/raid1.c:2334:32: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:2334:32: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:2334:32: sparse: struct md_rdev *
drivers/md/raid1.c:2351:32: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:2351:32: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:2351:32: sparse: struct md_rdev *
drivers/md/raid1.c:2767:24: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/md/raid1.c:2767:24: sparse: struct md_rdev [noderef] __rcu *
drivers/md/raid1.c:2767:24: sparse: struct md_rdev *
vim +1993 drivers/md/raid1.c
1989
1990 static int r1_sync_page_io(struct md_rdev *rdev, sector_t sector,
1991 int sectors, struct page *page, int rw)
1992 {
> 1993 if (sync_page_io(rdev, sector, sectors << 9, page, rw, false))
1994 /* success */
1995 return 1;
1996 if (rw == WRITE) {
1997 set_bit(WriteErrorSeen, &rdev->flags);
1998 if (!test_and_set_bit(WantReplacement,
1999 &rdev->flags))
2000 set_bit(MD_RECOVERY_NEEDED, &
2001 rdev->mddev->recovery);
2002 }
2003 /* need to record an error - either for the block or the device */
2004 if (!rdev_set_badblocks(rdev, sector, sectors, 0))
2005 md_error(rdev->mddev, rdev);
2006 return 0;
2007 }
2008
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists