lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202501041400.RwJiM5Yz-lkp@intel.com>
Date: Sat, 4 Jan 2025 14:28:29 +0800
From: kernel test robot <lkp@...el.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: drivers/comedi/drivers/ni_atmio.c:210:35: warning: 'device_ids'
 defined but not used

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@...el.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@....co.uk>
:::::: CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ