[groeck-staging:testing 10/11] lib/checksum_kunit.c:235:18: warning: unused variable 'expected_csum_ipv6_magic_corner'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git testing
head:   87a37f01e744b2203a6d053322632f680f30fade
commit: 068e2e1754d7c9e92e07c8332b2b64673b4989cc [10/11] lib: checksum: Add some corner cases to csum_ipv6_magic tests
config: arm-randconfig-001-20240218 (https://download.01.org/0day-ci/archive/20240218/202402180953.upWqUKdc-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 36adfec155de366d722f2bac8ff9162289dcf06c)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240218/202402180953.upWqUKdc-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402180953.upWqUKdc-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   lib/checksum_kunit.c:219:18: warning: unused variable 'expected_csum_ipv6_magic' [-Wunused-const-variable]
     219 | static const u16 expected_csum_ipv6_magic[] = {
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~
>> lib/checksum_kunit.c:235:18: warning: unused variable 'expected_csum_ipv6_magic_corner' [-Wunused-const-variable]
     235 | static const u16 expected_csum_ipv6_magic_corner[] = {
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings generated.


vim +/expected_csum_ipv6_magic_corner +235 lib/checksum_kunit.c

   234	
 > 235	static const u16 expected_csum_ipv6_magic_corner[] = {
   236		0xff00,	/* all 0xff	*/
   237		0x0000,	/* proto==0	*/
   238		0xfffe,	/* proto==1	*/
   239		0xff00,	/* len==0	*/
   240		0xfeff,	/* len==1	*/
   241		0xff00,	/* csum==0	*/
   242		0xfeff,	/* csum==1	*/
   243	};
   244	

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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux