From: kernel test robot <lkp@intel.com>
To: "Xin Li (Intel)" <xin3.li@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Ingo Molnar <mingo@kernel.org>
Subject: arch/x86/include/asm/msr.h:132:9: sparse: sparse: cast truncates bits from constant value (1000000ff becomes ff)
Date: Wed, 25 Mar 2026 18:36:27 +0800 [thread overview]
Message-ID: <202603251800.lgPYqV2b-lkp@intel.com> (raw)
Hi Xin,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bbeb83d3182abe0d245318e274e8531e5dd7a948
commit: 519be7da37b955164c59aacaee6d6ac89f4bbe15 x86/msr: Convert __wrmsr() uses to native_wrmsr{,q}() uses
date: 11 months ago
config: x86_64-randconfig-r122-20260325 (https://download.01.org/0day-ci/archive/20260325/202603251800.lgPYqV2b-lkp@intel.com/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260325/202603251800.lgPYqV2b-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/202603251800.lgPYqV2b-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
arch/x86/events/intel/uncore_snb.c: note: in included file:
>> arch/x86/include/asm/msr.h:132:9: sparse: sparse: cast truncates bits from constant value (1000000ff becomes ff)
vim +132 arch/x86/include/asm/msr.h
125
126 /* Can be uninlined because referenced by paravirt */
127 static inline void notrace
128 native_write_msr(u32 msr, u32 low, u32 high)
129 {
130 u64 val = (u64)high << 32 | low;
131
> 132 native_wrmsrq(msr, val);
133
134 if (tracepoint_enabled(write_msr))
135 do_trace_write_msr(msr, val, 0);
136 }
137
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-25 10:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202603251800.lgPYqV2b-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=xin3.li@intel.com \
/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
all inboxes | Powered by JetHome®