From: kernel test robot <lkp@intel.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: oe-kbuild-all@lists.linux.dev, linux-ext4@vger.kernel.org
Subject: [tytso-ext4:pu 58/62] arch/x86/include/asm/atomic64_32.h:122:34: sparse: sparse: cast truncates bits from constant value (123456789abcdef0 becomes 9abcdef0)
Date: Thu, 19 Nov 2026 17:38:16 +0100 [thread overview]
Message-ID: <20261119173257.cCOWLqed-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git pu
head: 4e6ed47a66cbed0752ef5cca4238d74d01a39cfa
commit: 87ed4088802281144836939e671cdea045849b88 [58/62] ext4: use atomic iversion accessors in swap_inode_data()
config: i386-randconfig-2302-20261119 (https://download.01.org/0day-ci/archive/20261119/20261119173257.cCOWLqed-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261119/20261119173257.cCOWLqed-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/20261119173257.cCOWLqed-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
fs/ext4/ioctl-test.c: note: in included file (through arch/x86/include/asm/atomic.h, include/linux/atomic.h, include/linux/cpumask.h, arch/x86/include/asm/paravirt.h, ...):
>> arch/x86/include/asm/atomic64_32.h:122:34: sparse: sparse: cast truncates bits from constant value (123456789abcdef0 becomes 9abcdef0)
>> arch/x86/include/asm/atomic64_32.h:122:34: sparse: sparse: cast truncates bits from constant value (fedcba9876543210 becomes 76543210)
vim +122 arch/x86/include/asm/atomic64_32.h
1a3b1d89eded68 Brian Gerst 2010-01-07 118
7aab7aa4b4bed2 Peter Zijlstra 2023-01-26 119 static __always_inline void arch_atomic64_set(atomic64_t *v, s64 i)
a7e926abc3adfb Luca Barbieri 2010-02-24 120 {
a7e926abc3adfb Luca Barbieri 2010-02-24 121 unsigned high = (unsigned)(i >> 32);
a7e926abc3adfb Luca Barbieri 2010-02-24 @122 unsigned low = (unsigned)i;
224788b63a2e42 Josh Poimboeuf 2025-03-02 123 alternative_atomic64(set,
224788b63a2e42 Josh Poimboeuf 2025-03-02 124 /* no output */,
224788b63a2e42 Josh Poimboeuf 2025-03-02 125 ASM_INPUT("S" (v), "b" (low), "c" (high)),
224788b63a2e42 Josh Poimboeuf 2025-03-02 126 "eax", "edx", "memory");
a7e926abc3adfb Luca Barbieri 2010-02-24 127 }
1a3b1d89eded68 Brian Gerst 2010-01-07 128
:::::: The code at line 122 was first introduced by commit
:::::: a7e926abc3adfbd2e5e20d2b46177adb4e313915 x86-32: Rewrite 32-bit atomic64 functions in assembly
:::::: TO: Luca Barbieri <luca@luca-barbieri.com>
:::::: CC: H. Peter Anvin <hpa@zytor.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-11-19 16:38 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=20261119173257.cCOWLqed-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-ext4@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tytso@mit.edu \
/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