Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [linux-next:master 6905/8209] drivers/watchdog/npcm_wdt.c:103:35: warning: unused variable 'npcm750_data'
@ 2026-07-22  6:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-22  6:34 UTC (permalink / raw)
  To: Tomer Maimon; +Cc: llvm, oe-kbuild-all, Guenter Roeck

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-22  6:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-22  6:34 [linux-next:master 6905/8209] drivers/watchdog/npcm_wdt.c:103:35: warning: unused variable 'npcm750_data' 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