From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 9824E3A48ED for ; Mon, 1 Jun 2026 13:55:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780322155; cv=none; b=cituc3yWlzgIWALE0pmpWaynip2n/AJnpvxB8Z1I37RZv8BpdvtjpN8btAmGj42RLpl6WAqpXttMTFicNv4HlOfS/YJQGystyaA8oFJB4yATWmYRgw36538kzQbViid0TaHthbIQdOU7717Gi0TlsAaN06ryACXSxmyDdKkY3UM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780322155; c=relaxed/simple; bh=Y73VXhGrfCoDCopsOQxD2B06s8e/isquk0/O81AUjeo=; h=Date:From:To:Cc:Subject:Message-ID; b=kf8svrFpeVKvuxRcvuQDUB+GBWJKanPcux55mZd0ROv0O5nCy836yDKGFkuD1vZAEU7vgX3UpynkBCi15tmchBvmg0eS9K+CQJEsUIcn3346QrDNW6MrpBnEAXSgB+FnJFQLVcVPQ3mO0BB1B11psM2D99QGMvW4+G/baBG7/Mw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=I6oxQhnZ; arc=none smtp.client-ip=198.175.65.11 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="I6oxQhnZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780322153; x=1811858153; h=date:from:to:cc:subject:message-id; bh=Y73VXhGrfCoDCopsOQxD2B06s8e/isquk0/O81AUjeo=; b=I6oxQhnZ6tB0ty/G7ktTOhOV34d8XRgLnRJ2wzhP4kNhEJoLVX7obHDr klh7+AWcWOjm/lybfoI51mDwDMU6ujPSblsx5uSEIGsWxofsvMb2Z789U dlG9bq3p80MzMewLZjBJll2k0Ecsju7ugvQfEGqUTQy/N77dhU//x2Ka3 kiI/WFcRb7xVO7SPd8iMB8hiqBF2WQZ02J1ILqYDgQMLAd57DmUpP4I1D 3MpgHjGhoxwTAK6sW8QPaxKAZS+I1JFmmaGfitLyBTLzVU92dbVWmUCvs 2bMbSnyJNN7ykCW0vgnZT47RKgJXAv/XnBqRRmgUfBZyoaVdPZpkhSpM3 w==; X-CSE-ConnectionGUID: wikJ0en+Q8aA9PIC5DISnA== X-CSE-MsgGUID: ijBNAuT4RW+gvcI+9pTVyA== X-IronPort-AV: E=McAfee;i="6800,10657,11804"; a="91390623" X-IronPort-AV: E=Sophos;i="6.24,181,1774335600"; d="scan'208";a="91390623" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2026 06:55:53 -0700 X-CSE-ConnectionGUID: UUocmW4iQdCXtDJ+vLDm5A== X-CSE-MsgGUID: GEkMRQKhRL+CUAPAkysDrA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,181,1774335600"; d="scan'208";a="241061519" Received: from lkp-server01.sh.intel.com (HELO f0d55cb201f0) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 01 Jun 2026 06:55:50 -0700 Received: from kbuild by f0d55cb201f0 with local (Exim 4.98.2) (envelope-from ) id 1wU37M-00000000Ade-04an; Mon, 01 Jun 2026 13:55:48 +0000 Date: Mon, 01 Jun 2026 21:55:09 +0800 From: kernel test robot To: avivdaum Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Christian Brauner Subject: fs/fat/fat_test.c:261:9: sparse: sparse: incorrect type in initializer (different base types) Message-ID: <202606012135.64vP17lk-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e43ffb69e0438cddd72aaa30898b4dc446f664f8 commit: 4bbf3f58e00f8671eb384c7df6983d803058b204 fat: add KUnit tests for timestamp conversion helpers date: 10 weeks ago config: alpha-randconfig-r122-20260601 (https://download.01.org/0day-ci/archive/20260601/202606012135.64vP17lk-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 12.5.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260601/202606012135.64vP17lk-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 | Fixes: 4bbf3f58e00f ("fat: add KUnit tests for timestamp conversion helpers") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202606012135.64vP17lk-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) fs/fat/fat_test.c:261:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected long long left_value @@ got restricted __le16 const __left @@ fs/fat/fat_test.c:261:9: sparse: expected long long left_value fs/fat/fat_test.c:261:9: sparse: got restricted __le16 const __left >> fs/fat/fat_test.c:261:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected long long right_value @@ got restricted __le16 const __right @@ fs/fat/fat_test.c:261:9: sparse: expected long long right_value fs/fat/fat_test.c:261:9: sparse: got restricted __le16 const __right fs/fat/fat_test.c:265:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected long long left_value @@ got restricted __le16 const __left @@ fs/fat/fat_test.c:265:9: sparse: expected long long left_value fs/fat/fat_test.c:265:9: sparse: got restricted __le16 const __left fs/fat/fat_test.c:265:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected long long right_value @@ got restricted __le16 const __right @@ fs/fat/fat_test.c:265:9: sparse: expected long long right_value fs/fat/fat_test.c:265:9: sparse: got restricted __le16 const __right fs/fat/fat_test.c:286:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected long long left_value @@ got restricted __le16 const __left @@ fs/fat/fat_test.c:286:9: sparse: expected long long left_value fs/fat/fat_test.c:286:9: sparse: got restricted __le16 const __left fs/fat/fat_test.c:286:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected long long right_value @@ got restricted __le16 const __right @@ fs/fat/fat_test.c:286:9: sparse: expected long long right_value fs/fat/fat_test.c:286:9: sparse: got restricted __le16 const __right fs/fat/fat_test.c:290:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected long long left_value @@ got restricted __le16 const __left @@ fs/fat/fat_test.c:290:9: sparse: expected long long left_value fs/fat/fat_test.c:290:9: sparse: got restricted __le16 const __left fs/fat/fat_test.c:290:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected long long right_value @@ got restricted __le16 const __right @@ fs/fat/fat_test.c:290:9: sparse: expected long long right_value fs/fat/fat_test.c:290:9: sparse: got restricted __le16 const __right vim +261 fs/fat/fat_test.c b0d4adaf3b3c44 David Gow 2021-04-15 248 b0d4adaf3b3c44 David Gow 2021-04-15 249 static void fat_time_unix2fat_test(struct kunit *test) b0d4adaf3b3c44 David Gow 2021-04-15 250 { b0d4adaf3b3c44 David Gow 2021-04-15 251 static struct msdos_sb_info fake_sb; b0d4adaf3b3c44 David Gow 2021-04-15 252 __le16 date, time; b0d4adaf3b3c44 David Gow 2021-04-15 253 u8 cs; b0d4adaf3b3c44 David Gow 2021-04-15 254 struct fat_timestamp_testcase *testcase = b0d4adaf3b3c44 David Gow 2021-04-15 255 (struct fat_timestamp_testcase *)test->param_value; b0d4adaf3b3c44 David Gow 2021-04-15 256 4bbf3f58e00f86 avivdaum 2026-03-16 257 fat_test_set_time_offset(&fake_sb, testcase->time_offset); b0d4adaf3b3c44 David Gow 2021-04-15 258 b0d4adaf3b3c44 David Gow 2021-04-15 259 fat_time_unix2fat(&fake_sb, &testcase->ts, b0d4adaf3b3c44 David Gow 2021-04-15 260 &time, &date, &cs); b0d4adaf3b3c44 David Gow 2021-04-15 @261 KUNIT_EXPECT_EQ_MSG(test, 4bbf3f58e00f86 avivdaum 2026-03-16 262 testcase->time, 4bbf3f58e00f86 avivdaum 2026-03-16 263 time, b0d4adaf3b3c44 David Gow 2021-04-15 264 "Time mismatch\n"); b0d4adaf3b3c44 David Gow 2021-04-15 265 KUNIT_EXPECT_EQ_MSG(test, 4bbf3f58e00f86 avivdaum 2026-03-16 266 testcase->date, 4bbf3f58e00f86 avivdaum 2026-03-16 267 date, b0d4adaf3b3c44 David Gow 2021-04-15 268 "Date mismatch\n"); b0d4adaf3b3c44 David Gow 2021-04-15 269 KUNIT_EXPECT_EQ_MSG(test, b0d4adaf3b3c44 David Gow 2021-04-15 270 testcase->cs, b0d4adaf3b3c44 David Gow 2021-04-15 271 cs, b0d4adaf3b3c44 David Gow 2021-04-15 272 "Centisecond mismatch\n"); b0d4adaf3b3c44 David Gow 2021-04-15 273 } b0d4adaf3b3c44 David Gow 2021-04-15 274 :::::: The code at line 261 was first introduced by commit :::::: b0d4adaf3b3c4402d9c3b6186e02aa1e4f7985cd fat: Add KUnit tests for checksums and timestamps :::::: TO: David Gow :::::: CC: Shuah Khan -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki