lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007260858.d0zwefxU%lkp@intel.com>
Date:   Sun, 26 Jul 2020 08:52:03 +0800
From:   kernel test robot <lkp@...el.com>
To:     Tristram Ha <Tristram.Ha@...rochip.com>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org,
        George McCollister <george.mccollister@...il.com>
Subject: drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: unused
 variable 'ksz9477_dt_ids'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   04300d66f0a06d572d9f2ad6768c38cabde22179
commit: 20e03777d70923fe7eae0d7f043ef9488393ab95 net: dsa: microchip: add KSZ9477 I2C driver
date:   11 months ago
config: x86_64-randconfig-r006-20200726 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 8bf4c1f4fb257774f66c8cda07adc6c5e8668326)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout 20e03777d70923fe7eae0d7f043ef9488393ab95
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

           ^
   include/linux/jhash.h:95:2: note: insert '__attribute__((fallthrough));' to silence this warning
           case 6:  b += (u32)k[5]<<8;     /* fall through */
           ^
           __attribute__((fallthrough)); 
   include/linux/jhash.h:95:2: note: insert 'break;' to avoid fall-through
           case 6:  b += (u32)k[5]<<8;     /* fall through */
           ^
           break; 
   include/linux/jhash.h:96:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case 5:  b += k[4];             /* fall through */
           ^
   include/linux/jhash.h:96:2: note: insert '__attribute__((fallthrough));' to silence this warning
           case 5:  b += k[4];             /* fall through */
           ^
           __attribute__((fallthrough)); 
   include/linux/jhash.h:96:2: note: insert 'break;' to avoid fall-through
           case 5:  b += k[4];             /* fall through */
           ^
           break; 
   include/linux/jhash.h:97:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case 4:  a += (u32)k[3]<<24;    /* fall through */
           ^
   include/linux/jhash.h:97:2: note: insert '__attribute__((fallthrough));' to silence this warning
           case 4:  a += (u32)k[3]<<24;    /* fall through */
           ^
           __attribute__((fallthrough)); 
   include/linux/jhash.h:97:2: note: insert 'break;' to avoid fall-through
           case 4:  a += (u32)k[3]<<24;    /* fall through */
           ^
           break; 
   include/linux/jhash.h:98:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case 3:  a += (u32)k[2]<<16;    /* fall through */
           ^
   include/linux/jhash.h:98:2: note: insert '__attribute__((fallthrough));' to silence this warning
           case 3:  a += (u32)k[2]<<16;    /* fall through */
           ^
           __attribute__((fallthrough)); 
   include/linux/jhash.h:98:2: note: insert 'break;' to avoid fall-through
           case 3:  a += (u32)k[2]<<16;    /* fall through */
           ^
           break; 
   include/linux/jhash.h:99:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case 2:  a += (u32)k[1]<<8;     /* fall through */
           ^
   include/linux/jhash.h:99:2: note: insert '__attribute__((fallthrough));' to silence this warning
           case 2:  a += (u32)k[1]<<8;     /* fall through */
           ^
           __attribute__((fallthrough)); 
   include/linux/jhash.h:99:2: note: insert 'break;' to avoid fall-through
           case 2:  a += (u32)k[1]<<8;     /* fall through */
           ^
           break; 
   include/linux/jhash.h:100:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case 1:  a += k[0];
           ^
   include/linux/jhash.h:100:2: note: insert '__attribute__((fallthrough));' to silence this warning
           case 1:  a += k[0];
           ^
           __attribute__((fallthrough)); 
   include/linux/jhash.h:100:2: note: insert 'break;' to avoid fall-through
           case 1:  a += k[0];
           ^
           break; 
   include/linux/jhash.h:102:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case 0: /* Nothing left to add */
           ^
   include/linux/jhash.h:102:2: note: insert 'break;' to avoid fall-through
           case 0: /* Nothing left to add */
           ^
           break; 
   include/linux/jhash.h:136:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case 2: b += k[1];      /* fall through */
           ^
   include/linux/jhash.h:136:2: note: insert '__attribute__((fallthrough));' to silence this warning
           case 2: b += k[1];      /* fall through */
           ^
           __attribute__((fallthrough)); 
   include/linux/jhash.h:136:2: note: insert 'break;' to avoid fall-through
           case 2: b += k[1];      /* fall through */
           ^
           break; 
   include/linux/jhash.h:137:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case 1: a += k[0];
           ^
   include/linux/jhash.h:137:2: note: insert '__attribute__((fallthrough));' to silence this warning
           case 1: a += k[0];
           ^
           __attribute__((fallthrough)); 
   include/linux/jhash.h:137:2: note: insert 'break;' to avoid fall-through
           case 1: a += k[0];
           ^
           break; 
   include/linux/jhash.h:139:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case 0: /* Nothing left to add */
           ^
   include/linux/jhash.h:139:2: note: insert 'break;' to avoid fall-through
           case 0: /* Nothing left to add */
           ^
           break; 
>> drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: unused variable 'ksz9477_dt_ids' [-Wunused-const-variable]
   static const struct of_device_id ksz9477_dt_ids[] = {
                                    ^
   37 warnings generated.

vim +/ksz9477_dt_ids +77 drivers/net/dsa/microchip/ksz9477_i2c.c

    76	
  > 77	static const struct of_device_id ksz9477_dt_ids[] = {
    78		{ .compatible = "microchip,ksz9477" },
    79		{ .compatible = "microchip,ksz9897" },
    80		{},
    81	};
    82	MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);
    83	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (34900 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ