* include/linux/bitfield-fix-width.h:74:20: sparse: sparse: cast truncates bits from constant value (ffff0000 becomes 0)
@ 2026-12-06 11:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-06 11:28 UTC (permalink / raw)
To: Yury Norov; +Cc: oe-kbuild-all, linux-kernel, Akihiko Odaki
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c3500c5ef648855b0063e763d3847688fe68711d
commit: 1c88ceb09d5e5506456a625043bc9b35ce86fc41 bitfield: get rid of __MAKE_OP machinery
date: 2 months ago
config: mips-randconfig-r2306-20261203 (https://download.01.org/0day-ci/archive/20261205/20261205002336.tWBfTHXk-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261205/20261205002336.tWBfTHXk-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: 1c88ceb09d5e ("bitfield: get rid of __MAKE_OP machinery")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261205002336.tWBfTHXk-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.c: note: in included file (through include/linux/bitfield.h, include/linux/ieee80211.h, include/net/mac80211.h, ...):
>> include/linux/bitfield-fix-width.h:74:20: sparse: sparse: cast truncates bits from constant value (ffff0000 becomes 0)
>> include/linux/bitfield-fix-width.h:74:20: sparse: sparse: cast truncates bits from constant value (ffff0000 becomes 0)
>> include/linux/bitfield-fix-width.h:74:20: sparse: sparse: cast truncates bits from constant value (ffff0000 becomes 0)
vim +74 include/linux/bitfield-fix-width.h
70
71 static __always_inline
72 void le16p_replace_bits(__le16 *p, u16 val, u16 field)
73 {
> 74 *p = (*p & ~cpu_to_le16(field)) | le16_encode_bits(val, field);
75 }
76
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-06 11:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-06 11:28 include/linux/bitfield-fix-width.h:74:20: sparse: sparse: cast truncates bits from constant value (ffff0000 becomes 0) kernel test robot
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®