* drivers/comedi/drivers/ni_atmio.c:210:35: warning: 'device_ids' defined but not used
@ 2025-01-04 6:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-04 6:28 UTC (permalink / raw)
Cc: oe-kbuild-all, linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-04 6:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-04 6:28 drivers/comedi/drivers/ni_atmio.c:210:35: warning: 'device_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
all inboxes | Powered by JetHome®