Skip to contentSkip to conversation

drivers/watchdog/stm32_iwdg.c:215:34: warning: 'stm32_iwdg_of_match' defined but not used

PATCH kernel test robot 1 participant 1 message Aug 21, 2023 Memory management

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   47d9bb711707d15b19fad18c8e2b4b027a264a3a
commit: f1a43aadb5a690e141a3b6700e2a40c1d4dbe088 [8460/11453] watchdog: Enable COMPILE_TEST for more drivers
config: parisc-randconfig-r036-20230821 (https://download.01.org/0day-ci/archive/20230821/[email protected]/config)
compiler: hppa-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230821/[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/stm32_iwdg.c:215:34: warning: 'stm32_iwdg_of_match' defined but not used [-Wunused-const-variable=]
     215 | static const struct of_device_id stm32_iwdg_of_match[] = {
         |                                  ^~~~~~~~~~~~~~~~~~~

vim +/stm32_iwdg_of_match +215 drivers/watchdog/stm32_iwdg.c

4332d113c66a6e Yannick Fertre 2017-04-06 214

c2cf466cca87e2 Ludovic Barre  2018-06-25 @215  static const struct of_device_id stm32_iwdg_of_match[] = {
e9974166a53acc Ludovic Barre  2019-05-03  216  	{ .compatible = "st,stm32-iwdg", .data = &stm32_iwdg_data },
e9974166a53acc Ludovic Barre  2019-05-03  217  	{ .compatible = "st,stm32mp1-iwdg", .data = &stm32mp1_iwdg_data },
c2cf466cca87e2 Ludovic Barre  2018-06-25  218  	{ /* end node */ }
c2cf466cca87e2 Ludovic Barre  2018-06-25  219  };
c2cf466cca87e2 Ludovic Barre  2018-06-25  220  MODULE_DEVICE_TABLE(of, stm32_iwdg_of_match);
c2cf466cca87e2 Ludovic Barre  2018-06-25  221  

:::::: The code at line 215 was first introduced by commit
:::::: c2cf466cca87e2072bd6616f751f4c385c2ab71e watchdog: stm32: add pclk feature for stm32mp1

:::::: TO: Ludovic Barre <[email protected]> :::::: CC: Wim Van Sebroeck <[email protected]>

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki