From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D253111C84 for ; Sun, 7 Jan 2024 22:23:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TOI5g38e" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704666181; x=1736202181; h=date:from:to:cc:subject:message-id:mime-version; bh=+xAXLo3LyRDbHL6zb+c2pvrH8z7Lk8YuUegkNEXkC80=; b=TOI5g38e9XzU6It/Ndr1h56ifzLxiu9GWEEIu2/DFA5waAqaGvVx2Xlf G5Gx5K8TlO5kP/9rslBfER8aZ5z/AxX1dnwADRRQwygwvNF4FRmO6+Y6p tqQRBe2Zkfg7v/UEkQo09v/arD5y4FtMJOyf6hyUOinNoRJFearS7J8sw Z4Ieah6iBowg4woK8SP3yBsLaRh/tV5VivmJe+eaSMPTcKtwQTwPt+9ym 2oKSoTh8CF8+0zsF/KZEh1W2qtptmIMvq5IDeIA4Xppsgw/xpq/BQBeNN 9nDJnetDUtK8bnJJkLprLb4wHUvdIiqfQdj13Yt/usHcDWw53g9V08dNw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="16360306" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="16360306" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2024 14:23:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="1028230075" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="1028230075" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 07 Jan 2024 14:22:59 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rMbXl-0004D0-1i; Sun, 07 Jan 2024 22:22:57 +0000 Date: Mon, 8 Jan 2024 06:22:02 +0800 From: kernel test robot To: Bart Van Assche Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Jens Axboe Subject: drivers/md/raid1.c:1993:60: sparse: sparse: incorrect type in argument 5 (different base types) Message-ID: <202401080657.UjFnvQgX-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 | 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