linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arun Ramadoss <arun.ramadoss@microchip.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 4228/13104] drivers/net/dsa/microchip/ksz9477_i2c.c:89:34: warning: 'ksz9477_dt_ids' defined but not used
Date: Wed, 27 Jul 2022 05:31:13 +0800	[thread overview]
Message-ID: <202207270542.EPoP6qNg-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   058affafc65a74cf54499fb578b66ad0b18f939b
commit: 07bca160469b4d19ca0a35bc83b26ed18fcbd96d [4228/13104] net: dsa: microchip: common menuconfig for ksz series switch
config: x86_64-randconfig-a005-20211203 (https://download.01.org/0day-ci/archive/20220727/202207270542.EPoP6qNg-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/next/linux-next.git/commit/?id=07bca160469b4d19ca0a35bc83b26ed18fcbd96d
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 07bca160469b4d19ca0a35bc83b26ed18fcbd96d
        # 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/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:89:34: warning: 'ksz9477_dt_ids' defined but not used [-Wunused-const-variable=]
      89 | static const struct of_device_id ksz9477_dt_ids[] = {
         |                                  ^~~~~~~~~~~~~~


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

20e03777d70923 Tristram Ha   2019-09-10   88  
20e03777d70923 Tristram Ha   2019-09-10  @89  static const struct of_device_id ksz9477_dt_ids[] = {
eee16b147121ce Arun Ramadoss 2022-05-17   90  	{
eee16b147121ce Arun Ramadoss 2022-05-17   91  		.compatible = "microchip,ksz9477",
eee16b147121ce Arun Ramadoss 2022-05-17   92  		.data = &ksz_switch_chips[KSZ9477]
eee16b147121ce Arun Ramadoss 2022-05-17   93  	},
eee16b147121ce Arun Ramadoss 2022-05-17   94  	{
eee16b147121ce Arun Ramadoss 2022-05-17   95  		.compatible = "microchip,ksz9897",
eee16b147121ce Arun Ramadoss 2022-05-17   96  		.data = &ksz_switch_chips[KSZ9897]
eee16b147121ce Arun Ramadoss 2022-05-17   97  	},
eee16b147121ce Arun Ramadoss 2022-05-17   98  	{
eee16b147121ce Arun Ramadoss 2022-05-17   99  		.compatible = "microchip,ksz9893",
eee16b147121ce Arun Ramadoss 2022-05-17  100  		.data = &ksz_switch_chips[KSZ9893]
eee16b147121ce Arun Ramadoss 2022-05-17  101  	},
eee16b147121ce Arun Ramadoss 2022-05-17  102  	{
eee16b147121ce Arun Ramadoss 2022-05-17  103  		.compatible = "microchip,ksz9563",
eee16b147121ce Arun Ramadoss 2022-05-17  104  		.data = &ksz_switch_chips[KSZ9893]
eee16b147121ce Arun Ramadoss 2022-05-17  105  	},
eee16b147121ce Arun Ramadoss 2022-05-17  106  	{
eee16b147121ce Arun Ramadoss 2022-05-17  107  		.compatible = "microchip,ksz8563",
eee16b147121ce Arun Ramadoss 2022-05-17  108  		.data = &ksz_switch_chips[KSZ9893]
eee16b147121ce Arun Ramadoss 2022-05-17  109  	},
eee16b147121ce Arun Ramadoss 2022-05-17  110  	{
eee16b147121ce Arun Ramadoss 2022-05-17  111  		.compatible = "microchip,ksz9567",
eee16b147121ce Arun Ramadoss 2022-05-17  112  		.data = &ksz_switch_chips[KSZ9567]
eee16b147121ce Arun Ramadoss 2022-05-17  113  	},
20e03777d70923 Tristram Ha   2019-09-10  114  	{},
20e03777d70923 Tristram Ha   2019-09-10  115  };
20e03777d70923 Tristram Ha   2019-09-10  116  MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);
20e03777d70923 Tristram Ha   2019-09-10  117  

:::::: The code at line 89 was first introduced by commit
:::::: 20e03777d70923fe7eae0d7f043ef9488393ab95 net: dsa: microchip: add KSZ9477 I2C driver

:::::: TO: Tristram Ha <Tristram.Ha@microchip.com>
:::::: CC: David S. Miller <davem@davemloft.net>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


                 reply	other threads:[~2022-07-26 21:31 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=202207270542.EPoP6qNg-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arun.ramadoss@microchip.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.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