Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [staging:staging-linus 11/11] drivers/staging/gpib/tnt4882/tnt4882_gpib.c:1507:35: warning: unused variable 'tnt4882_pnp_table'
@ 2025-01-08  6:16 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-08  6:16 UTC (permalink / raw)
  To: Lukas Bulwahn; +Cc: llvm, oe-kbuild-all, devel, Greg Kroah-Hartman

Hi Lukas,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-linus
head:   84b172cea4a23016dc80a44eaa7ff8b7c97b04b3
commit: 84b172cea4a23016dc80a44eaa7ff8b7c97b04b3 [11/11] staging: gpib: refer to correct config symbol in tnt4882 Makefile
:::::: branch date: 14 hours ago
:::::: commit date: 14 hours ago
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20250108/202501081213.5vHUhT8P-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250108/202501081213.5vHUhT8P-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/r/202501081213.5vHUhT8P-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/staging/gpib/tnt4882/tnt4882_gpib.c:762:15: warning: variable 'retval' set but not used [-Wunused-but-set-variable]
           unsigned int retval;
                        ^
>> drivers/staging/gpib/tnt4882/tnt4882_gpib.c:1507:35: warning: unused variable 'tnt4882_pnp_table' [-Wunused-const-variable]
   static const struct pnp_device_id tnt4882_pnp_table[] = {
                                     ^
   2 warnings generated.


vim +/tnt4882_pnp_table +1507 drivers/staging/gpib/tnt4882/tnt4882_gpib.c

0cd5b05551e022 Dave Penkler 2024-09-18  1506  
0cd5b05551e022 Dave Penkler 2024-09-18 @1507  static const struct pnp_device_id tnt4882_pnp_table[] = {
0cd5b05551e022 Dave Penkler 2024-09-18  1508  	{.id = "NICC601"},
0cd5b05551e022 Dave Penkler 2024-09-18  1509  	{.id = ""}
0cd5b05551e022 Dave Penkler 2024-09-18  1510  };
0cd5b05551e022 Dave Penkler 2024-09-18  1511  MODULE_DEVICE_TABLE(pnp, tnt4882_pnp_table);
0cd5b05551e022 Dave Penkler 2024-09-18  1512  

:::::: The code at line 1507 was first introduced by commit
:::::: 0cd5b05551e02242f9fa15f1e87cefff9efa3080 staging: gpib: Add TNT4882 chip based GPIB driver

:::::: TO: Dave Penkler <dpenkler@gmail.com>
:::::: 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-08  6:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08  6:16 [staging:staging-linus 11/11] drivers/staging/gpib/tnt4882/tnt4882_gpib.c:1507:35: warning: unused variable 'tnt4882_pnp_table' 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