Re: [PATCH v1 2/2] clk: sprd: Add SC9832E clock driver
From: kernel test robot <hidden>
Date: 2026-01-21 00:54:17
Also in:
linux-clk, lkml, llvm, oe-kbuild-all
Hi Nadi, kernel test robot noticed the following build errors: [auto build test ERROR on clk/clk-next] [also build test ERROR on linus/master v6.19-rc6 next-20260120] [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/Nadi-Ke/dt-bindings-clock-sprd-Add-SC9832E-clock-controller/20260121-001334 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20260120144436.233998-3-kanadenady%40gmail.com patch subject: [PATCH v1 2/2] clk: sprd: Add SC9832E clock driver config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20260121/202601210710.tDbyuXMU-lkp@intel.com/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260121/202601210710.tDbyuXMU-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 [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202601210710.tDbyuXMU-lkp@intel.com/ (local) All errors (new ones prefixed by >>): drivers/clk/sprd/sc9832e-clk.c:1041:24: error: use of undeclared identifier 'sc9832e_clk_ids'; did you mean 'sc9832e_pll_hws'? 1041 | match = of_match_node(sc9832e_clk_ids, pdev->dev.of_node); | ^~~~~~~~~~~~~~~ | sc9832e_pll_hws drivers/clk/sprd/sc9832e-clk.c:162:35: note: 'sc9832e_pll_hws' declared here 162 | static struct clk_hw_onecell_data sc9832e_pll_hws = { | ^
quoted
drivers/clk/sprd/sc9832e-clk.c:1041:24: error: passing 'struct clk_hw_onecell_data' to parameter of incompatible type 'const struct of_device_id *'
1041 | match = of_match_node(sc9832e_clk_ids, pdev->dev.of_node);
| ^~~~~~~~~~~~~~~
include/linux/of.h:379:29: note: passing argument to parameter 'matches' here
379 | const struct of_device_id *matches, const struct device_node *node);
| ^
drivers/clk/sprd/sc9832e-clk.c:1058:21: error: use of undeclared identifier 'sc9832e_clk_ids'; did you mean 'sc9832e_pll_hws'?
1058 | .of_match_table = sc9832e_clk_ids,
| ^~~~~~~~~~~~~~~
| sc9832e_pll_hws
drivers/clk/sprd/sc9832e-clk.c:162:35: note: 'sc9832e_pll_hws' declared here
162 | static struct clk_hw_onecell_data sc9832e_pll_hws = {
| ^
drivers/clk/sprd/sc9832e-clk.c:1058:21: error: initializing 'const struct of_device_id *' with an expression of incompatible type 'struct clk_hw_onecell_data'
1058 | .of_match_table = sc9832e_clk_ids,
| ^~~~~~~~~~~~~~~
4 errors generated.
vim +1041 drivers/clk/sprd/sc9832e-clk.c
1034
1035 static int sc9832e_clk_probe(struct platform_device *pdev)
1036 {
1037 const struct of_device_id *match;
1038 const struct sprd_clk_desc *desc;
1039 int ret;
1040 1041 match = of_match_node(sc9832e_clk_ids, pdev->dev.of_node);
1042 if (!match) 1043 return -ENODEV; 1044 1045 desc = match->data; 1046 1047 ret = sprd_clk_regmap_init(pdev, desc); 1048 if (ret) 1049 return ret; 1050 1051 return sprd_clk_probe(&pdev->dev, desc->hw_clks); 1052 } 1053 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki