Re: [PATCH v3 6/6] clk: qcom: Add TCSR clock driver for Eliza

From: kernel test robot

Date: Mon Feb 16 2026 - 21:32:40 EST


Hi Abel,

kernel test robot noticed the following build errors:

[auto build test ERROR on 635c467cc14ebdffab3f77610217c1dacaf88e8c]

url: https://github.com/intel-lab-lkp/linux/commits/Abel-Vesa/dt-bindings-clock-qcom-document-the-Eliza-Global-Clock-Controller/20260216-215148
base: 635c467cc14ebdffab3f77610217c1dacaf88e8c
patch link: https://lore.kernel.org/r/20260216-eliza-clocks-v3-6-8afc5a7e3a98%40oss.qualcomm.com
patch subject: [PATCH v3 6/6] clk: qcom: Add TCSR clock driver for Eliza
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260217/202602171002.SP54PXRC-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260217/202602171002.SP54PXRC-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602171002.SP54PXRC-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/clk/qcom/tcsrcc-eliza.c:126:3: error: use of undeclared identifier 'TCSR_HDMI_CLKREF_EN'
126 | [TCSR_HDMI_CLKREF_EN] = &tcsr_hdmi_clkref_en.clkr,
| ^
>> drivers/clk/qcom/tcsrcc-eliza.c:128:3: error: use of undeclared identifier 'TCSR_PCIE_1_CLKREF_EN'
128 | [TCSR_PCIE_1_CLKREF_EN] = &tcsr_pcie_1_clkref_en.clkr,
| ^
>> drivers/clk/qcom/tcsrcc-eliza.c:145:14: error: invalid application of 'sizeof' to an incomplete type 'struct clk_regmap *[]'
145 | .num_clks = ARRAY_SIZE(tcsr_cc_eliza_clocks),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~
3 errors generated.


vim +/TCSR_HDMI_CLKREF_EN +126 drivers/clk/qcom/tcsrcc-eliza.c

124
125 static struct clk_regmap *tcsr_cc_eliza_clocks[] = {
> 126 [TCSR_HDMI_CLKREF_EN] = &tcsr_hdmi_clkref_en.clkr,
127 [TCSR_PCIE_0_CLKREF_EN] = &tcsr_pcie_0_clkref_en.clkr,
> 128 [TCSR_PCIE_1_CLKREF_EN] = &tcsr_pcie_1_clkref_en.clkr,
129 [TCSR_UFS_CLKREF_EN] = &tcsr_ufs_clkref_en.clkr,
130 [TCSR_USB2_CLKREF_EN] = &tcsr_usb2_clkref_en.clkr,
131 [TCSR_USB3_CLKREF_EN] = &tcsr_usb3_clkref_en.clkr,
132 };
133
134 static const struct regmap_config tcsr_cc_eliza_regmap_config = {
135 .reg_bits = 32,
136 .reg_stride = 4,
137 .val_bits = 32,
138 .max_register = 0x1c,
139 .fast_io = true,
140 };
141
142 static const struct qcom_cc_desc tcsr_cc_eliza_desc = {
143 .config = &tcsr_cc_eliza_regmap_config,
144 .clks = tcsr_cc_eliza_clocks,
> 145 .num_clks = ARRAY_SIZE(tcsr_cc_eliza_clocks),
146 };
147

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