From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.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 DBFF8385539 for ; Mon, 10 Aug 2026 07:57:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786348666; cv=none; b=Hry4v91D9JyXV5Soefg6tSETXzvKt1ON+mMPvCZTWtmQrNnDTAhg38xE+cep6WmBLqN4xjkecuqI3P3+X425J0m9SP53cArc/R/q6CpXAlLlTP2ydwoSl1aIicwDERQ2i22tL5fPSshlqpc04rys3k0xBCyYDx20WKK5KOX1NGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786348666; c=relaxed/simple; bh=eTk8TlJGlUY1DIeimGOJfd/36Owbg0CRuT60R9SvAA4=; h=Date:From:To:Cc:Subject:Message-ID; b=htzENe01fyFDJOLRcocxqg0PgWgwtQ7HmdxSzIWJIiPDwb7gjKQZLCXSDcONhlYlICvrbu1imkYSk6XSe1R2q66PE4dRNgC7j77PcZVluF/d7L3r5dQLVkhdi3yJRtyM8t5GnTskFI6ZGNHMQsj0929O11FusFI41clfsw80gro= 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=h0PJpb6+; arc=none smtp.client-ip=192.198.163.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="h0PJpb6+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1786348665; x=1817884665; h=date:from:to:cc:subject:message-id; bh=eTk8TlJGlUY1DIeimGOJfd/36Owbg0CRuT60R9SvAA4=; b=h0PJpb6+mKnsz/zy1hLDLO++1rPy0Wshq+7s3FDrEWK4OsCwdkXdg96o FP9aU8cFN//yRMgKaNRJ0QT90OOfNd/hfPonc6gYBd9g2Z+kwQ4nN1Z3h Vi8EsBmQ43O42drtpHUke82nZhVkjg+kDkMfhHGMMCKIDeFXtWErWy1Oj Lhn9xcD09VgK4moL10+zaGGVQ3kg2SnR2rtCKPHEYUOEACUvZnzhBR5dS 62s2xQlMaEaDCRFMeUbsEUmVcVpvPt0mFzx8BydNuVrbm0rQdTblxQjb0 mFkbgCPm1mKhpZIWb7G0gOBh/y2ymPsh1Z7O27UOk421P0TS9MRtkhWZk w==; X-CSE-ConnectionGUID: +baXw2DuR2S/mmwGNduj1A== X-CSE-MsgGUID: 7j4dW0suQ52z2phJ1yEhYg== X-IronPort-AV: E=McAfee;i="6800,10657,11870"; a="97453523" X-IronPort-AV: E=Sophos;i="6.25,215,1779174000"; d="scan'208";a="97453523" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2026 00:57:45 -0700 X-CSE-ConnectionGUID: gxvDMJbnSQi8VE6jQCEfVw== X-CSE-MsgGUID: zznlZI2GS6SwFHYVFImtOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,215,1779174000"; d="scan'208";a="292891015" Received: from lkp-server01.sh.intel.com (HELO 6eda058d650d) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 10 Aug 2026 00:57:43 -0700 Received: from kbuild by 6eda058d650d with local (Exim 4.98.2) (envelope-from ) id 1wtKtA-00000000N0i-2PVl; Mon, 10 Aug 2026 07:57:40 +0000 Date: Mon, 10 Aug 2026 15:56:47 +0800 From: kernel test robot To: Eric Dumazet Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Thomas Gleixner Subject: include/linux/jiffies.h:449:36: sparse: sparse: cast truncates bits from constant value (7fffffffffffffff becomes ffffffff) Message-ID: <202608101544.nyBeQ2qT-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: 06cf61899d6498b33e4b7c87d99d5bd471ccc375 commit: b777b5e09eabeefc6ba80f4296366a4742701103 time/jiffies: Inline jiffies_to_msecs() and jiffies_to_usecs() date: 6 months ago config: x86_64-randconfig-r132-20260810 (https://download.01.org/0day-ci/archive/20260810/202608101544.nyBeQ2qT-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260810/202608101544.nyBeQ2qT-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: b777b5e09eab ("time/jiffies: Inline jiffies_to_msecs() and jiffies_to_usecs()") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202608101544.nyBeQ2qT-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/gpu/drm/i915/gt/intel_engine_cs.c: note: in included file (through include/linux/ktime.h, include/linux/timer.h, include/linux/uprobes.h, include/linux/mm_types.h, ...): >> include/linux/jiffies.h:449:36: sparse: sparse: cast truncates bits from constant value (7fffffffffffffff becomes ffffffff) >> include/linux/jiffies.h:449:36: sparse: sparse: cast truncates bits from constant value (7fffffffffffffff becomes ffffffff) >> include/linux/jiffies.h:449:36: sparse: sparse: cast truncates bits from constant value (7fffffffffffffff becomes ffffffff) >> include/linux/jiffies.h:449:36: sparse: sparse: cast truncates bits from constant value (7fffffffffffffff becomes ffffffff) vim +449 include/linux/jiffies.h 433 434 /* 435 * Convert various time units to each other: 436 */ 437 438 #if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ) 439 /** 440 * jiffies_to_msecs - Convert jiffies to milliseconds 441 * @j: jiffies value 442 * 443 * This inline version takes care of HZ in {100,250,1000}. 444 * 445 * Return: milliseconds value 446 */ 447 static inline unsigned int jiffies_to_msecs(const unsigned long j) 448 { > 449 return (MSEC_PER_SEC / HZ) * j; 450 } 451 #else 452 unsigned int jiffies_to_msecs(const unsigned long j); 453 #endif 454 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki