* [masneyb:clk-misc-round-two-for-v7.3 15/45] drivers/clk/mediatek/clk-mt8173-infracfg.c:131:29: error: use of undeclared identifier 'clk_data'
@ 2026-07-29 17:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-29 17:31 UTC (permalink / raw)
To: Akari Tsuyukusa; +Cc: llvm, oe-kbuild-all, Brian Masney
tree: https://github.com/masneyb/linux clk-misc-round-two-for-v7.3
head: e2eec03ed313a8180ebe4eb9e32a6b8429f804a5
commit: d29088009b4afdb7fc1f3cbb6ba3364e483b17d9 [15/45] clk: mediatek: mt8173: fix memory leak on module removal
config: s390-randconfig-002-20260729 (https://download.01.org/0day-ci/archive/20260730/202607300133.MCJfTRc1-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 890b11e09e45e9d8b29f2f94f22052be3934e757)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260730/202607300133.MCJfTRc1-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607300133.MCJfTRc1-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/clk/mediatek/clk-mt8173-infracfg.c:131:29: error: use of undeclared identifier 'clk_data'
131 | platform_set_drvdata(pdev, clk_data);
| ^~~~~~~~
1 error generated.
vim +/clk_data +131 drivers/clk/mediatek/clk-mt8173-infracfg.c
78
79 static void clk_mt8173_infra_init_early(struct device_node *node)
80 {
81 int i;
82
83 infra_clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK);
84 if (!infra_clk_data)
85 return;
86
87 for (i = 0; i < CLK_INFRA_NR_CLK; i++)
88 infra_clk_data->hws[i] = ERR_PTR(-EPROBE_DEFER);
89
90 mtk_clk_register_factors(infra_early_divs,
91 ARRAY_SIZE(infra_early_divs), infra_clk_data);
92
93 of_clk_add_hw_provider(node, of_clk_hw_onecell_get, infra_clk_data);
94 }
95 CLK_OF_DECLARE_DRIVER(mtk_infrasys, "mediatek,mt8173-infracfg",
96 clk_mt8173_infra_init_early);
97
98 static int clk_mt8173_infracfg_probe(struct platform_device *pdev)
99 {
100 struct device_node *node = pdev->dev.of_node;
101 int r, i;
102
103 if (!infra_clk_data) {
104 infra_clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK);
105 if (!infra_clk_data)
106 return -ENOMEM;
107 } else {
108 for (i = 0; i < CLK_INFRA_NR_CLK; i++)
109 if (infra_clk_data->hws[i] == ERR_PTR(-EPROBE_DEFER))
110 infra_clk_data->hws[i] = ERR_PTR(-ENOENT);
111 }
112
113 r = mtk_clk_register_gates(&pdev->dev, node, infra_gates,
114 ARRAY_SIZE(infra_gates), infra_clk_data);
115 if (r)
116 return r;
117
118 r = mtk_clk_register_cpumuxes(&pdev->dev, node, cpu_muxes,
119 ARRAY_SIZE(cpu_muxes), infra_clk_data);
120 if (r)
121 goto unregister_gates;
122
123 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, infra_clk_data);
124 if (r)
125 goto unregister_cpumuxes;
126
127 r = mtk_register_reset_controller_with_dev(&pdev->dev, &clk_rst_desc);
128 if (r)
129 goto unregister_clk_hw;
130
> 131 platform_set_drvdata(pdev, clk_data);
132
133 return 0;
134
135 unregister_clk_hw:
136 of_clk_del_provider(node);
137 unregister_cpumuxes:
138 mtk_clk_unregister_cpumuxes(cpu_muxes, ARRAY_SIZE(cpu_muxes), infra_clk_data);
139 unregister_gates:
140 mtk_clk_unregister_gates(infra_gates, ARRAY_SIZE(infra_gates), infra_clk_data);
141 return r;
142 }
143
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-29 17:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29 17:31 [masneyb:clk-misc-round-two-for-v7.3 15/45] drivers/clk/mediatek/clk-mt8173-infracfg.c:131:29: error: use of undeclared identifier 'clk_data' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.