* [ulfh-pm:debug_pm 24/27] drivers/pmdomain/pm_domain_test.c:152:35: error: 'pm_domain_cpu_gov' undeclared
@ 2026-01-19 18:19 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-19 18:19 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: 9906dfc4ce39030a1b96f46d4158406e5ba21b16
commit: f51046345a48ae9d1e9e06ca89d92c842bdf90e2 [24/27] pmdomain: Add driver for simple PM domain providers with perf support
config: arm-randconfig-004-20260119 (https://download.01.org/0day-ci/archive/20260120/202601200232.0YTYbppa-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260120/202601200232.0YTYbppa-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/202601200232.0YTYbppa-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/pmdomain/pm_domain_test.c: In function 'pd_init':
>> drivers/pmdomain/pm_domain_test.c:152:35: error: 'pm_domain_cpu_gov' undeclared (first use in this function)
152 | pd_gov = &pm_domain_cpu_gov;
| ^~~~~~~~~~~~~~~~~
drivers/pmdomain/pm_domain_test.c:152:35: note: each undeclared identifier is reported only once for each function it appears in
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-01-19 18:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 18:19 [ulfh-pm:debug_pm 24/27] drivers/pmdomain/pm_domain_test.c:152:35: error: 'pm_domain_cpu_gov' undeclared 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.