[PATCH v2 02/11] iio: adc: stm32-mdf: add core registration

kernel test robot lkp at intel.com
Fri Nov 20 13:17:29 PST 2026


Hi Olivier,

kernel test robot noticed the following build warnings:

[auto build test WARNING on d922ed738439e1d5b4701df7f4cdd49a09925624]

url:    https://github.com/intel-lab-lkp/linux/commits/Olivier-Moysan/dt-bindings-iio-adc-add-stm32mp2-mdf-filter/20261118-161746
base:   d922ed738439e1d5b4701df7f4cdd49a09925624
patch link:    https://lore.kernel.org/r/20261118-upstream_mdf_v2-v2-2-7939d3c3720a%40foss.st.com
patch subject: [PATCH v2 02/11] iio: adc: stm32-mdf: add core registration
config: csky-allmodconfig (https://download.01.org/0day-ci/archive/20261121/202611210514.27XNsKFF-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261121/202611210514.27XNsKFF-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611210514.27XNsKFF-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/iio/adc/stm32-mdf-core.c:447:12: warning: 'stm32_mdf_core_runtime_resume' defined but not used [-Wunused-function]
     447 | static int stm32_mdf_core_runtime_resume(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/adc/stm32-mdf-core.c:442:12: warning: 'stm32_mdf_core_runtime_suspend' defined but not used [-Wunused-function]
     442 | static int stm32_mdf_core_runtime_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/adc/stm32-mdf-core.c:407:12: warning: 'stm32_mdf_core_resume' defined but not used [-Wunused-function]
     407 | static int stm32_mdf_core_resume(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/adc/stm32-mdf-core.c:388:12: warning: 'stm32_mdf_core_suspend' defined but not used [-Wunused-function]
     388 | static int stm32_mdf_core_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~~~


vim +/stm32_mdf_core_runtime_resume +447 drivers/iio/adc/stm32-mdf-core.c

   387	
 > 388	static int stm32_mdf_core_suspend(struct device *dev)
   389	{
   390		struct stm32_mdf *mdf = dev_get_drvdata(dev);
   391		struct stm32_mdf_priv *priv = to_stm32_mdf_priv(mdf);
   392		int ret;
   393	
   394		ret = pm_runtime_force_suspend(dev);
   395		if (ret)
   396			return ret;
   397	
   398		regcache_cache_only(priv->regmap, true);
   399		regcache_mark_dirty(priv->regmap);
   400	
   401		/* Balance regmap_mmio_attach_clk() clk_prepare() */
   402		clk_unprepare(priv->kclk);
   403	
   404		return pinctrl_pm_select_sleep_state(dev);
   405	}
   406	
 > 407	static int stm32_mdf_core_resume(struct device *dev)
   408	{
   409		struct stm32_mdf *mdf = dev_get_drvdata(dev);
   410		struct stm32_mdf_priv *priv = to_stm32_mdf_priv(mdf);
   411		int ret;
   412	
   413		ret = pinctrl_pm_select_default_state(dev);
   414		if (ret) {
   415			dev_err(dev, "Failed to set pins default state: %d\n", ret);
   416			return ret;
   417		}
   418	
   419		ret = clk_prepare(priv->kclk);
   420		if (ret) {
   421			dev_err(dev, "Failed to prepare kernel clock: %d\n", ret);
   422			goto err_clk;
   423		}
   424	
   425		regcache_cache_only(priv->regmap, false);
   426		ret = regcache_sync(priv->regmap);
   427		if (ret) {
   428			dev_err(dev, "Failed to sync cache: %d\n", ret);
   429			goto err_cache;
   430		}
   431	
   432		return pm_runtime_force_resume(dev);
   433	
   434	err_cache:
   435		clk_unprepare(priv->kclk);
   436	err_clk:
   437		pinctrl_pm_select_sleep_state(dev);
   438	
   439		return ret;
   440	}
   441	
 > 442	static int stm32_mdf_core_runtime_suspend(struct device *dev)
   443	{
   444		return 0;
   445	}
   446	
 > 447	static int stm32_mdf_core_runtime_resume(struct device *dev)
   448	{
   449		return 0;
   450	}
   451	

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



More information about the linux-arm-kernel mailing list