mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: drivers/comedi/drivers/ni_atmio.c:210:35: warning: 'device_ids' defined but not used
Date: Sat, 4 Jan 2025 14:28:29 +0800	[thread overview]
Message-ID: <202501041400.RwJiM5Yz-lkp@intel.com> (raw)

Hi Greg,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   63676eefb7a026d04b51dcb7aaf54f358517a2ec
commit: 8ffdff6a8cfbdc174a3a390b6f825a277b5bb895 staging: comedi: move out of staging directory
date:   3 years, 9 months ago
config: parisc-randconfig-c44-20220907 (https://download.01.org/0day-ci/archive/20250104/202501041400.RwJiM5Yz-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250104/202501041400.RwJiM5Yz-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501041400.RwJiM5Yz-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/comedi/drivers/ni_atmio.c:210:35: warning: 'device_ids' defined but not used [-Wunused-const-variable=]
     210 | static const struct pnp_device_id device_ids[] = {
         |                                   ^~~~~~~~~~


vim +/device_ids +210 drivers/comedi/drivers/ni_atmio.c

a8b774308dd803 drivers/staging/comedi/drivers/ni_atmio.c David Schleef 2009-02-12  209  
08680307eb876e drivers/staging/comedi/drivers/ni_atmio.c Ian Abbott    2017-03-08 @210  static const struct pnp_device_id device_ids[] = {
a8b774308dd803 drivers/staging/comedi/drivers/ni_atmio.c David Schleef 2009-02-12  211  	{.id = "NIC1900", .driver_data = 0},
a8b774308dd803 drivers/staging/comedi/drivers/ni_atmio.c David Schleef 2009-02-12  212  	{.id = "NIC2400", .driver_data = 0},
a8b774308dd803 drivers/staging/comedi/drivers/ni_atmio.c David Schleef 2009-02-12  213  	{.id = "NIC2500", .driver_data = 0},
a8b774308dd803 drivers/staging/comedi/drivers/ni_atmio.c David Schleef 2009-02-12  214  	{.id = "NIC2600", .driver_data = 0},
a8b774308dd803 drivers/staging/comedi/drivers/ni_atmio.c David Schleef 2009-02-12  215  	{.id = "NIC2700", .driver_data = 0},
a8b774308dd803 drivers/staging/comedi/drivers/ni_atmio.c David Schleef 2009-02-12  216  	{.id = ""}
a8b774308dd803 drivers/staging/comedi/drivers/ni_atmio.c David Schleef 2009-02-12  217  };
a8b774308dd803 drivers/staging/comedi/drivers/ni_atmio.c David Schleef 2009-02-12  218  

:::::: The code at line 210 was first introduced by commit
:::::: 08680307eb876e389e068ae75f6f6a84248e2263 staging: comedi: ni_atmio: make device_ids const

:::::: TO: Ian Abbott <abbotti@mev.co.uk>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-01-04  6:29 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=202501041400.RwJiM5Yz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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®