* [ulfh-pm:debug_pm 2/6] drivers/pmdomain/pm_domain_test.c:152:14: error: use of undeclared identifier 'pm_domain_cpu_gov'
@ 2026-04-11 0:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-11 0:31 UTC (permalink / raw)
To: Ulf Hansson; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm.git debug_pm
head: a09aeaab168370f51d35266f52b804fd3809265b
commit: cf92a4ef872775fda995f1e8b7502c144e6190e3 [2/6] pmdomain: Add driver for simple PM domain providers with perf support
config: arm-randconfig-r071-20260411 (https://download.01.org/0day-ci/archive/20260411/202604110810.7BA8AsN0-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project ae825cb8cea7f3ac8e5e4096f22713845cf5e501)
smatch: v0.5.0-9004-gb810ac53
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260411/202604110810.7BA8AsN0-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/202604110810.7BA8AsN0-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/pmdomain/pm_domain_test.c:152:14: error: use of undeclared identifier 'pm_domain_cpu_gov'
152 | pd_gov = &pm_domain_cpu_gov;
| ^~~~~~~~~~~~~~~~~
1 error generated.
vim +/pm_domain_cpu_gov +152 drivers/pmdomain/pm_domain_test.c
124
125 static int pd_init(struct device *dev, struct device_node *np)
126 {
127 struct generic_pm_domain *pd;
128 struct dev_power_governor *pd_gov = NULL;
129 struct genpd_power_state *states = NULL;
130 int state_count = 0, ret;
131 bool boot_on, cpu_pd;
132
133 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL);
134 if (!pd)
135 return -ENOMEM;
136
137 /* DT property for CPU PM domain. */
138 cpu_pd = of_property_present(np, "cpu_pm_domain");
139 if (cpu_pd)
140 pd->flags |= GENPD_FLAG_IRQ_SAFE | GENPD_FLAG_CPU_DOMAIN;
141
142 ret = of_genpd_parse_idle_states(np, &states, &state_count);
143 if (ret)
144 dev_err(dev, "%s failed parsing idle states err=%d\n",
145 __func__, ret);
146 if (states) {
147 pd->free_states = pd_free_states;
148 pd->states = states;
149 pd->state_count = state_count;
150
151 if (cpu_pd)
> 152 pd_gov = &pm_domain_cpu_gov;
153 else
154 pd_gov = &simple_qos_governor;
155 }
156
157 pd->name = devm_kasprintf(dev, GFP_KERNEL, "%pOF", np);
158 pd->name = kbasename(pd->name);
159 pd->power_off = pd_power_off;
160 pd->power_on = pd_power_on;
161
162 if (strcmp(dev_name(dev), "domain_perf") == 0) {
163 dev_info(dev, "set perf-cb for %s\n", pd->name);
164 pd->set_performance_state = pd_set_performance_state;
165 }
166
167 if (strcmp(dev_name(dev), "domain_perf_single") == 0) {
168 dev_info(dev, "set perf-cb for %s\n", pd->name);
169 pd->set_performance_state = pd_set_performance_state;
170 }
171
172 if (strcmp(dev_name(dev), "domain_irq_safe") == 0) {
173 dev_info(dev, "Set GENPD_FLAG_IRQ_SAFE for %s\n", pd->name);
174 pd->flags |= GENPD_FLAG_IRQ_SAFE;
175 }
176
177 /* DT property to see if boot-on|off. */
178 boot_on = of_property_present(np, "boot-on");
179
180 ret = pm_genpd_init(pd, pd_gov, !boot_on);
181 if (ret) {
182 kfree(pd->states);
183 return ret;
184 }
185
186 ret = of_genpd_add_provider_simple(np, pd);
187 if (ret)
188 pm_genpd_remove(pd);
189
190 return ret;
191 }
192
--
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-04-11 0:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-11 0:31 [ulfh-pm:debug_pm 2/6] drivers/pmdomain/pm_domain_test.c:152:14: error: use of undeclared identifier 'pm_domain_cpu_gov' 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.