Re: [PATCH v5 11/17] spi: st: Simplify clock handling with devm_clk_get_enabled()

kernel test robot
2026-03-20T08:40:58Z

Hi Pei,

kernel test robot noticed the following build warnings:

[auto build test WARNING on broonie-spi/for-next]
[also build test WARNING on next-20260319]
[cannot apply to atorgue-stm32/stm32-next rockchip/for-next xilinx-xlnx/master clk/clk-next shawnguo/for-next soc/for-next linus/master v7.0-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Pei-Xiao/spi-axiado-Simplify-clock-management-with-devm_clk_get_enabled/20260320-025630
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
patch link: https://lore.kernel.org/r/383814750ad46181fd4199b3c6cec4767d480075.1773885292.git.xiaopei01%40kylinos.cn
patch subject: [PATCH v5 11/17] spi: st: Simplify clock handling with devm_clk_get_enabled()
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260320/202603201638.tsz5xX5N-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260320/202603201638.tsz5xX5N-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/202603201638.tsz5xX5N-lkp@intel.com/

All warnings (new ones prefixed by >>):

drivers/spi/spi-st-ssc4.c: In function 'spi_st_remove':
>> drivers/spi/spi-st-ssc4.c:365:32: warning: unused variable 'host' [-Wunused-variable]
365 | struct spi_controller *host = platform_get_drvdata(pdev);
| ^~~~

vim +/host +365 drivers/spi/spi-st-ssc4.c

9e862375c5420a Lee Jones 2014-12-09 362
2dd42da0b479ff Uwe Kleine-König 2023-03-03 363 static void spi_st_remove(struct platform_device *pdev)
9e862375c5420a Lee Jones 2014-12-09 364 {
e6b7e64cb11966 Yang Yingliang 2023-11-28 @365 struct spi_controller *host = platform_get_drvdata(pdev);
9e862375c5420a Lee Jones 2014-12-09 366
cd050abeba2a95 Chuhong Yuan 2019-11-18 367 pm_runtime_disable(&pdev->dev);
cd050abeba2a95 Chuhong Yuan 2019-11-18 368
9e862375c5420a Lee Jones 2014-12-09 369 pinctrl_pm_select_sleep_state(&pdev->dev);
9e862375c5420a Lee Jones 2014-12-09 370 }
9e862375c5420a Lee Jones 2014-12-09 371

--
0-DAY CI Kernel Test Service