linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: unused variable 'ksz9477_dt_ids'
@ 2020-07-26  0:52 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-26  0:52 UTC (permalink / raw)
  To: Tristram Ha
  Cc: kbuild-all, clang-built-linux, linux-kernel, George McCollister

[-- Attachment #1: Type: text/plain, Size: 6571 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34900 bytes --]

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

* drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: unused variable 'ksz9477_dt_ids'
@ 2020-08-11 23:39 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-08-11 23:39 UTC (permalink / raw)
  To: Tristram Ha
  Cc: kbuild-all, clang-built-linux, linux-kernel, George McCollister

[-- Attachment #1: Type: text/plain, Size: 6624 bytes --]

Hi Tristram,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   bb5baaa9238ecf8f13b112232c7bbe0d3d598ee8
commit: 20e03777d70923fe7eae0d7f043ef9488393ab95 net: dsa: microchip: add KSZ9477 I2C driver
date:   11 months ago
config: x86_64-randconfig-r032-20200812 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 4f2ad15db535873dda9bfe248a2771023b64a43c)
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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32705 bytes --]

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

end of thread, other threads:[~2020-08-11 23:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-26  0:52 drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: unused variable 'ksz9477_dt_ids' kernel test robot
2020-08-11 23:39 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;
as well as URLs for NNTP newsgroup(s).