Skip to contentSkip to conversation

drivers/clk/clk-asm9260.c:258:17: warning: variable 'hw' set but not used

DISCUSSION kernel test robot 1 participant 1 message Sep 4, 2023

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

Hi Dmitry,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   708283abf896dd4853e673cc8cba70acaf9bf4ea
commit: f5290d8e4f0caa81a491448a27dd70e726095d07 clk: asm9260: use parent index to link the reference clock
date:   11 months ago
config: arm-randconfig-r001-20230904 (https://download.01.org/0day-ci/archive/20230904/[email protected]/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230904/[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/clk/clk-asm9260.c:258:17: warning: variable 'hw' set but not used [-Wunused-but-set-variable]
           struct clk_hw *hw, *pll_hw;
                          ^

1 warning generated.

vim +/hw +258 drivers/clk/clk-asm9260.c

255
256 static void __init asm9260_acc_init(struct device_node *np)
257 {

 > 258		struct clk_hw *hw, *pll_hw;
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki