[linux-next:master 6905/8209] drivers/watchdog/npcm_wdt.c:103:35: warning: unused variable 'npcm750_data'
kernel test robot <[email protected]> Wed, 22 Jul 2026 14:34:01 +0800
| Newsgroups | dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
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/[email protected]/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/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ 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