From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Jens Axboe <axboe@kernel.dk>
Subject: drivers/md/raid1.c:1993:60: sparse: sparse: incorrect type in argument 5 (different base types)
Date: Mon, 8 Jan 2024 06:22:02 +0800 [thread overview]
Message-ID: <202401080657.UjFnvQgX-lkp@intel.com> (raw)
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@intel.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
next reply other threads:[~2024-01-07 22:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-07 22:22 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-08 18:20 drivers/md/raid1.c:1993:60: sparse: sparse: incorrect type in argument 5 (different base types) kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202401080657.UjFnvQgX-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox