Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lukas Bulwahn <lukas.bulwahn@redhat.com>
Cc: <llvm@lists.linux.dev>, <oe-kbuild-all@lists.linux.dev>,
	<devel@driverdev.osuosl.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [staging:staging-linus 11/11] drivers/staging/gpib/tnt4882/tnt4882_gpib.c:1507:35: warning: unused variable 'tnt4882_pnp_table'
Date: Wed, 8 Jan 2025 14:16:05 +0800	[thread overview]
Message-ID: <Z34YJR1iwzcbAGFM@rli9-mobl> (raw)

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


                 reply	other threads:[~2025-01-08  6:16 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=Z34YJR1iwzcbAGFM@rli9-mobl \
    --to=lkp@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=llvm@lists.linux.dev \
    --cc=lukas.bulwahn@redhat.com \
    --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