From: kernel test robot <lkp@intel.com>
To: Tomer Maimon <tmaimon77@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Guenter Roeck <linux@roeck-us.net>
Subject: [linux-next:master 6905/8209] drivers/watchdog/npcm_wdt.c:103:35: warning: unused variable 'npcm750_data'
Date: Wed, 22 Jul 2026 14:34:01 +0800 [thread overview]
Message-ID: <202607221427.uOhZCcPN-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 290aaf24a551d5a0dce037e3fab30820f9113a10
commit: b483970ee8c9bc2a2dde70776e6c8902ed331674 [6905/8209] watchdog: npcm: add bootstatus support
config: x86_64-buildonly-randconfig-004-20260722 (https://download.01.org/0day-ci/archive/20260722/202607221427.uOhZCcPN-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260722/202607221427.uOhZCcPN-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/202607221427.uOhZCcPN-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/watchdog/npcm_wdt.c:103:35: warning: unused variable 'npcm750_data' [-Wunused-const-variable]
103 | static const struct npcm_wdt_data npcm750_data = {
| ^~~~~~~~~~~~
>> drivers/watchdog/npcm_wdt.c:125:35: warning: unused variable 'npcm845_data' [-Wunused-const-variable]
125 | static const struct npcm_wdt_data npcm845_data = {
| ^~~~~~~~~~~~
2 warnings generated.
vim +/npcm750_data +103 drivers/watchdog/npcm_wdt.c
102
> 103 static const struct npcm_wdt_data npcm750_data = {
104 .rst_map = npcm750_rst_map,
105 .rst_map_size = ARRAY_SIZE(npcm750_rst_map),
106 .status_map = npcm750_status_map,
107 .status_map_size = ARRAY_SIZE(npcm750_status_map),
108 };
109
110 static const struct npcm_wdt_rst_map npcm845_rst_map[] = {
111 { 0xf000801c, NPCM_WD0RST },
112 { 0xf000901c, NPCM_WD1RST },
113 { 0xf000a01c, NPCM_WD2RST },
114 };
115
116 static const struct npcm_wdt_status_map npcm845_status_map[] = {
117 { NPCM_PORST, WDIOF_OVERHEAT },
118 { NPCM_CORST, WDIOF_FANFAULT },
119 { NPCM_SWR1RST, WDIOF_EXTERN1 },
120 { NPCM_SWR2RST, WDIOF_EXTERN2 },
121 { NPCM_SWR3RST, WDIOF_POWERUNDER },
122 { NPCM8XX_TIP_RESET, WDIOF_POWEROVER },
123 };
124
> 125 static const struct npcm_wdt_data npcm845_data = {
126 .rst_map = npcm845_rst_map,
127 .rst_map_size = ARRAY_SIZE(npcm845_rst_map),
128 .status_map = npcm845_status_map,
129 .status_map_size = ARRAY_SIZE(npcm845_status_map),
130 };
131
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-07-22 6:34 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=202607221427.uOhZCcPN-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux@roeck-us.net \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tmaimon77@gmail.com \
/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