[PATCH v5 4/6] clk: Add KUnit tests for assigned-clock-sscs
kernel test robot
lkp at intel.com
Fri Oct 10 11:41:35 PDT 2025
Hi Peng,
kernel test robot noticed the following build errors:
[auto build test ERROR on 7c3ba4249a3604477ea9c077e10089ba7ddcaa03]
url: https://github.com/intel-lab-lkp/linux/commits/Peng-Fan/dt-bindings-clock-Add-spread-spectrum-definition/20251010-085803
base: 7c3ba4249a3604477ea9c077e10089ba7ddcaa03
patch link: https://lore.kernel.org/r/20251009-clk-ssc-v5-1-v5-4-d6447d76171e%40nxp.com
patch subject: [PATCH v5 4/6] clk: Add KUnit tests for assigned-clock-sscs
config: s390-randconfig-002-20251011 (https://download.01.org/0day-ci/archive/20251011/202510110212.VLPx3MCC-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251011/202510110212.VLPx3MCC-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/202510110212.VLPx3MCC-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/clk/clk_test.c:115:32: error: initialization of 'int (*)(struct clk_hw *, const struct clk_spread_spectrum *)' from incompatible pointer type 'int (*)(struct clk_hw *, struct clk_spread_spectrum *)' [-Wincompatible-pointer-types]
115 | .set_spread_spectrum = clk_dummy_set_spread_spectrum,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/clk_test.c:115:32: note: (near initialization for 'clk_dummy_rate_ops.set_spread_spectrum')
drivers/clk/clk_test.c:87:12: note: 'clk_dummy_set_spread_spectrum' declared here
87 | static int clk_dummy_set_spread_spectrum(struct clk_hw *hw,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/clk_test.c:122:32: error: initialization of 'int (*)(struct clk_hw *, const struct clk_spread_spectrum *)' from incompatible pointer type 'int (*)(struct clk_hw *, struct clk_spread_spectrum *)' [-Wincompatible-pointer-types]
122 | .set_spread_spectrum = clk_dummy_set_spread_spectrum,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/clk_test.c:122:32: note: (near initialization for 'clk_dummy_maximize_rate_ops.set_spread_spectrum')
drivers/clk/clk_test.c:87:12: note: 'clk_dummy_set_spread_spectrum' declared here
87 | static int clk_dummy_set_spread_spectrum(struct clk_hw *hw,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/clk_test.c:129:32: error: initialization of 'int (*)(struct clk_hw *, const struct clk_spread_spectrum *)' from incompatible pointer type 'int (*)(struct clk_hw *, struct clk_spread_spectrum *)' [-Wincompatible-pointer-types]
129 | .set_spread_spectrum = clk_dummy_set_spread_spectrum,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/clk_test.c:129:32: note: (near initialization for 'clk_dummy_minimize_rate_ops.set_spread_spectrum')
drivers/clk/clk_test.c:87:12: note: 'clk_dummy_set_spread_spectrum' declared here
87 | static int clk_dummy_set_spread_spectrum(struct clk_hw *hw,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +115 drivers/clk/clk_test.c
110
111 static const struct clk_ops clk_dummy_rate_ops = {
112 .recalc_rate = clk_dummy_recalc_rate,
113 .determine_rate = clk_dummy_determine_rate,
114 .set_rate = clk_dummy_set_rate,
> 115 .set_spread_spectrum = clk_dummy_set_spread_spectrum,
116 };
117
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-arm-kernel
mailing list