linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: 'ksz9477_dt_ids' defined but not used
@ 2022-08-15  3:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-15  3:56 UTC (permalink / raw)
  To: Tristram Ha; +Cc: kbuild-all, linux-kernel, George McCollister

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   568035b01cfb107af8d2e4bd2fb9aea22cf5b868
commit: 20e03777d70923fe7eae0d7f043ef9488393ab95 net: dsa: microchip: add KSZ9477 I2C driver
date:   2 years, 11 months ago
config: x86_64-buildonly-randconfig-r002-20220815 (https://download.01.org/0day-ci/archive/20220815/202208151149.g01fvM7O-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=20e03777d70923fe7eae0d7f043ef9488393ab95
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 20e03777d70923fe7eae0d7f043ef9488393ab95
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/media/platform/ drivers/net/dsa/microchip/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: 'ksz9477_dt_ids' defined but not used [-Wunused-const-variable=]
      77 | static const struct of_device_id ksz9477_dt_ids[] = {
         |                                  ^~~~~~~~~~~~~~


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
https://01.org/lkp

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

only message in thread, other threads:[~2022-08-15  3:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-15  3:56 drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: 'ksz9477_dt_ids' defined but not used 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).