[PATCH 7/9] clk: samsung: Implement automatic clock gating mode for CMUs
kernel test robot
lkp at intel.com
Tue Oct 14 07:46:56 PDT 2025
Hi Peter,
kernel test robot noticed the following build errors:
[auto build test ERROR on 4a71531471926e3c391665ee9c42f4e0295a4585]
url: https://github.com/intel-lab-lkp/linux/commits/Peter-Griffin/dt-bindings-soc-samsung-exynos-sysreg-add-gs101-hsi0-and-misc-compatibles/20251014-045559
base: 4a71531471926e3c391665ee9c42f4e0295a4585
patch link: https://lore.kernel.org/r/20251013-automatic-clocks-v1-7-72851ee00300%40linaro.org
patch subject: [PATCH 7/9] clk: samsung: Implement automatic clock gating mode for CMUs
config: loongarch-randconfig-001-20251014 (https://download.01.org/0day-ci/archive/20251014/202510142228.IQJSNIFa-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251014/202510142228.IQJSNIFa-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/202510142228.IQJSNIFa-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
>> drivers/clk/samsung/clk.c:481:13: error: too many arguments to function call, expected 5, have 6
478 | samsung_clk_extended_sleep_init(NULL, ctx->sysreg,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
479 | cmu->sysreg_clk_regs,
480 | cmu->nr_sysreg_clk_regs,
481 | NULL, 0);
| ^
drivers/clk/samsung/clk.h:453:20: note: 'samsung_clk_extended_sleep_init' declared here
453 | static inline void samsung_clk_extended_sleep_init(void __iomem *reg_base,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
454 | const unsigned long *rdump,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
455 | unsigned long nr_rdump,
| ~~~~~~~~~~~~~~~~~~~~~~~
456 | const struct samsung_clk_reg_dump *rsuspend,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
457 | unsigned long nr_rsuspend) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/samsung/clk.c:511:23: error: too many arguments to function call, expected 5, have 6
509 | samsung_clk_extended_sleep_init(reg_base, NULL,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
510 | cmu->clk_regs, cmu->nr_clk_regs,
511 | cmu->suspend_regs, cmu->nr_suspend_regs);
| ^~~~~~~~~~~~~~~~~~~~
drivers/clk/samsung/clk.h:453:20: note: 'samsung_clk_extended_sleep_init' declared here
453 | static inline void samsung_clk_extended_sleep_init(void __iomem *reg_base,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
454 | const unsigned long *rdump,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
455 | unsigned long nr_rdump,
| ~~~~~~~~~~~~~~~~~~~~~~~
456 | const struct samsung_clk_reg_dump *rsuspend,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
457 | unsigned long nr_rsuspend) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
--
>> Warning: drivers/clk/samsung/clk-exynos-arm64.c:249 function parameter 'init_clk_regs' not described in 'exynos_arm64_register_cmu_pm'
vim +481 drivers/clk/samsung/clk.c
462
463 /* Enable Dynamic Root Clock Gating of bus components*/
464 void samsung_en_dyn_root_clk_gating(struct device_node *np,
465 struct samsung_clk_provider *ctx,
466 const struct samsung_cmu_info *cmu)
467 {
468 if (ctx && !ctx->auto_clock_gate)
469 return;
470
471 ctx->sysreg = syscon_regmap_lookup_by_phandle(np, "samsung,sysreg");
472 if (!IS_ERR_OR_NULL(ctx->sysreg)) {
473 regmap_write(ctx->sysreg, ctx->drcg_offset, 0xffffffff);
474 /* not every sysreg controller has memclk reg*/
475 if (ctx->memclk_offset)
476 regmap_write_bits(ctx->sysreg, ctx->memclk_offset, 0x1, 0x0);
477
478 samsung_clk_extended_sleep_init(NULL, ctx->sysreg,
479 cmu->sysreg_clk_regs,
480 cmu->nr_sysreg_clk_regs,
> 481 NULL, 0);
482 } else {
483 pr_warn("%pOF: Unable to get CMU sysreg\n", np);
484 ctx->sysreg = NULL;
485 }
486 }
487
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-arm-kernel
mailing list