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

From: kernel test robot
Date: Mon Sep 04 2023 - 08:35:56 EST


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/202309042014.IWERPl09-lkp@xxxxxxxxx/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/202309042014.IWERPl09-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309042014.IWERPl09-lkp@xxxxxxxxx/

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;

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