mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Tristram Ha <Tristram.Ha@microchip.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	George McCollister <george.mccollister@gmail.com>
Subject: drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: 'ksz9477_dt_ids' defined but not used
Date: Mon, 15 Aug 2022 11:56:54 +0800	[thread overview]
Message-ID: <202208151149.g01fvM7O-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-08-15  3:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202208151149.g01fvM7O-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Tristram.Ha@microchip.com \
    --cc=george.mccollister@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®