public inbox for [email protected]
 help / color / mirror / Atom feed
* [ammarfaizi2-block:dhowells/linux-fs/afs-testing 44/44] arch/sh/include/asm/cmpxchg-irq.h:24:14: sparse: sparse: cast truncates bits from constant value (5e5ee5e5 becomes e5e5)
@ 2022-03-26  2:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-26  2:31 UTC (permalink / raw)
  To: David Howells; +Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel

tree:   https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/afs-testing
head:   1eba43e7cea9100a3767c5a7212ec5f1db4db4fd
commit: 1eba43e7cea9100a3767c5a7212ec5f1db4db4fd [44/44] Check for dead timer
config: sh-randconfig-s032-20220325 (https://download.01.org/0day-ci/archive/20220326/[email protected]/config)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://github.com/ammarfaizi2/linux-block/commit/1eba43e7cea9100a3767c5a7212ec5f1db4db4fd
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/afs-testing
        git checkout 1eba43e7cea9100a3767c5a7212ec5f1db4db4fd
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sh SHELL=/bin/bash kernel/time/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)
   kernel/time/timer.c: note: in included file (through arch/sh/include/asm/cmpxchg.h, arch/sh/include/asm/atomic.h, include/linux/atomic.h, ...):
>> arch/sh/include/asm/cmpxchg-irq.h:24:14: sparse: sparse: cast truncates bits from constant value (5e5ee5e5 becomes e5e5)

vim +24 arch/sh/include/asm/cmpxchg-irq.h

1efe4ce3ca126da include/asm-sh/cmpxchg-irq.h      Stuart Menefy      2007-11-30  17  
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07  18  static inline unsigned long xchg_u16(volatile u16 *m, unsigned long val)
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07  19  {
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07  20  	unsigned long flags, retval;
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07  21  
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07  22  	local_irq_save(flags);
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07  23  	retval = *m;
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07 @24  	*m = val;
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07  25  	local_irq_restore(flags);
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07  26  	return retval;
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07  27  }
3226aad81aa6700 arch/sh/include/asm/cmpxchg-irq.h Michael S. Tsirkin 2016-01-07  28  

:::::: The code at line 24 was first introduced by commit
:::::: 3226aad81aa670015a59e51458a0deb2d3bcb600 sh: support 1 and 2 byte xchg

:::::: TO: Michael S. Tsirkin <[email protected]>
:::::: CC: Michael S. Tsirkin <[email protected]>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-03-26  2:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-26  2:31 [ammarfaizi2-block:dhowells/linux-fs/afs-testing 44/44] arch/sh/include/asm/cmpxchg-irq.h:24:14: sparse: sparse: cast truncates bits from constant value (5e5ee5e5 becomes e5e5) 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