public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [ulfh-pm:debug_pm 24/27] drivers/pmdomain/pm_domain_test.c:152:14: error: use of undeclared identifier 'pm_domain_cpu_gov'
Date: Tue, 20 Jan 2026 02:51:37 +0800	[thread overview]
Message-ID: <202601200225.LP7u9lzf-lkp@intel.com> (raw)

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: arm64-randconfig-002-20260119 (https://download.01.org/0day-ci/archive/20260120/202601200225.LP7u9lzf-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260120/202601200225.LP7u9lzf-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/202601200225.LP7u9lzf-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

                 reply	other threads:[~2026-01-19 18:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202601200225.LP7u9lzf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox