Linux EXT4 FS development
 help / color / mirror / Atom feed
* [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)
@ 2026-11-19 16:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-19 16:38 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: oe-kbuild-all, linux-ext4

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 16:38 [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) 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