mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yury Norov <ynorov@nvidia.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Subject: include/linux/bitfield-fix-width.h:74:20: sparse: sparse: cast truncates bits from constant value (ffff0000 becomes 0)
Date: Sun, 06 Dec 2026 12:28:11 +0100	[thread overview]
Message-ID: <20261205002336.tWBfTHXk-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-12-06 11:28 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=20261205002336.tWBfTHXk-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=odaki@rsg.ci.i.u-tokyo.ac.jp \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ynorov@nvidia.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®