mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* arch/nios2/include/asm/checksum.h:30:24: sparse: sparse: restricted __wsum degrades to integer
@ 2023-11-02 14:15 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-11-02 14:15 UTC (permalink / raw)
  To: Christophe Leroy; +Cc: oe-kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   21e80f3841c01aeaf32d7aee7bbc87b3db1aa0c6
commit: b38460bc463c54e0c15ff3b37e81f7e2059bb9bb kunit: Fix checksum tests on big endian CPUs
date:   10 weeks ago
config: nios2-randconfig-r121-20231102 (https://download.01.org/0day-ci/archive/20231102/202311022246.5tfOUz5a-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231102/202311022246.5tfOUz5a-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/202311022246.5tfOUz5a-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   lib/checksum_kunit.c: note: in included file:
>> arch/nios2/include/asm/checksum.h:30:24: sparse: sparse: restricted __wsum degrades to integer
>> arch/nios2/include/asm/checksum.h:30:24: sparse: sparse: restricted __wsum degrades to integer
>> arch/nios2/include/asm/checksum.h:30:24: sparse: sparse: restricted __wsum degrades to integer
>> arch/nios2/include/asm/checksum.h:30:24: sparse: sparse: restricted __wsum degrades to integer
>> arch/nios2/include/asm/checksum.h:30:24: sparse: sparse: restricted __wsum degrades to integer

vim +30 arch/nios2/include/asm/checksum.h

eea9507a69d637 Ley Foon Tan 2014-11-06  17  
eea9507a69d637 Ley Foon Tan 2014-11-06  18  /*
eea9507a69d637 Ley Foon Tan 2014-11-06  19   * Fold a partial checksum
eea9507a69d637 Ley Foon Tan 2014-11-06  20   */
eea9507a69d637 Ley Foon Tan 2014-11-06  21  static inline __sum16 csum_fold(__wsum sum)
eea9507a69d637 Ley Foon Tan 2014-11-06  22  {
eea9507a69d637 Ley Foon Tan 2014-11-06  23  	__asm__ __volatile__(
eea9507a69d637 Ley Foon Tan 2014-11-06  24  		"add	%0, %1, %0\n"
eea9507a69d637 Ley Foon Tan 2014-11-06  25  		"cmpltu	r8, %0, %1\n"
eea9507a69d637 Ley Foon Tan 2014-11-06  26  		"srli	%0, %0, 16\n"
eea9507a69d637 Ley Foon Tan 2014-11-06  27  		"add	%0, %0, r8\n"
eea9507a69d637 Ley Foon Tan 2014-11-06  28  		"nor	%0, %0, %0\n"
eea9507a69d637 Ley Foon Tan 2014-11-06  29  		: "=r" (sum)
eea9507a69d637 Ley Foon Tan 2014-11-06 @30  		: "r" (sum << 16), "0" (sum)
eea9507a69d637 Ley Foon Tan 2014-11-06  31  		: "r8");
eea9507a69d637 Ley Foon Tan 2014-11-06  32  	return (__force __sum16) sum;
eea9507a69d637 Ley Foon Tan 2014-11-06  33  }
eea9507a69d637 Ley Foon Tan 2014-11-06  34  

:::::: The code at line 30 was first introduced by commit
:::::: eea9507a69d637d52705de8703b168bf6bfe5643 nios2: Library functions

:::::: TO: Ley Foon Tan <lftan@altera.com>
:::::: CC: Ley Foon Tan <lftan@altera.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* arch/nios2/include/asm/checksum.h:30:24: sparse: sparse: restricted __wsum degrades to integer
@ 2026-06-11 10:50 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-06-11 10:50 UTC (permalink / raw)
  To: Keith Busch
  Cc: oe-kbuild-all, linux-kernel, Jens Axboe, Martin K. Petersen,
	Christoph Hellwig

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9716c086c8e8b141d35aa61f2e96a2e83de212a7
commit: 203247c5cb972af5d46bdb7d41ef40078048810b blk-integrity: support arbitrary buffer alignment
date:   3 months ago
config: nios2-randconfig-r134-20260611 (https://download.01.org/0day-ci/archive/20260611/202606111818.O5tEL43L-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260611/202606111818.O5tEL43L-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: 203247c5cb97 ("blk-integrity: support arbitrary buffer alignment")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606111818.O5tEL43L-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   block/t10-pi.c: note: in included file (through include/net/checksum.h):
>> arch/nios2/include/asm/checksum.h:30:24: sparse: sparse: restricted __wsum degrades to integer

vim +30 arch/nios2/include/asm/checksum.h

eea9507a69d637d Ley Foon Tan 2014-11-06  17  
eea9507a69d637d Ley Foon Tan 2014-11-06  18  /*
eea9507a69d637d Ley Foon Tan 2014-11-06  19   * Fold a partial checksum
eea9507a69d637d Ley Foon Tan 2014-11-06  20   */
eea9507a69d637d Ley Foon Tan 2014-11-06  21  static inline __sum16 csum_fold(__wsum sum)
eea9507a69d637d Ley Foon Tan 2014-11-06  22  {
eea9507a69d637d Ley Foon Tan 2014-11-06  23  	__asm__ __volatile__(
eea9507a69d637d Ley Foon Tan 2014-11-06  24  		"add	%0, %1, %0\n"
eea9507a69d637d Ley Foon Tan 2014-11-06  25  		"cmpltu	r8, %0, %1\n"
eea9507a69d637d Ley Foon Tan 2014-11-06  26  		"srli	%0, %0, 16\n"
eea9507a69d637d Ley Foon Tan 2014-11-06  27  		"add	%0, %0, r8\n"
eea9507a69d637d Ley Foon Tan 2014-11-06  28  		"nor	%0, %0, %0\n"
eea9507a69d637d Ley Foon Tan 2014-11-06  29  		: "=r" (sum)
eea9507a69d637d Ley Foon Tan 2014-11-06 @30  		: "r" (sum << 16), "0" (sum)
eea9507a69d637d Ley Foon Tan 2014-11-06  31  		: "r8");
eea9507a69d637d Ley Foon Tan 2014-11-06  32  	return (__force __sum16) sum;
eea9507a69d637d Ley Foon Tan 2014-11-06  33  }
eea9507a69d637d Ley Foon Tan 2014-11-06  34  

:::::: The code at line 30 was first introduced by commit
:::::: eea9507a69d637d52705de8703b168bf6bfe5643 nios2: Library functions

:::::: TO: Ley Foon Tan <lftan@altera.com>
:::::: CC: Ley Foon Tan <lftan@altera.com>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-11 10:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-02 14:15 arch/nios2/include/asm/checksum.h:30:24: sparse: sparse: restricted __wsum degrades to integer kernel test robot
2026-06-11 10:50 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®