[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202506120817.nRfhoHbQ-lkp@intel.com>
Date: Thu, 12 Jun 2025 09:16:18 +0800
From: kernel test robot <lkp@...el.com>
To: Nick Hu <nick.hu@...ive.com>, conor+dt@...nel.org, krzk+dt@...nel.org,
Alexandre Ghiti <alex@...ti.fr>, linux-kernel@...r.kernel.org,
linux-pm@...r.kernel.org, linux-riscv@...ts.infradead.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Nick Hu <nick.hu@...ive.com>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Samuel Holland <samuel.holland@...ive.com>
Subject: Re: [PATCH v2 3/3] cpuidle: Add SiFive power provider
Hi Nick,
kernel test robot noticed the following build errors:
[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on rafael-pm/bleeding-edge robh/for-next linus/master v6.16-rc1 next-20250611]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Nick-Hu/cpuidle-riscv-sbi-Work-with-the-external-pmdomain-driver/20250611-121115
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link: https://lore.kernel.org/r/20250611031023.28769-4-nick.hu%40sifive.com
patch subject: [PATCH v2 3/3] cpuidle: Add SiFive power provider
config: riscv-randconfig-002-20250612 (https://download.01.org/0day-ci/archive/20250612/202506120817.nRfhoHbQ-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250612/202506120817.nRfhoHbQ-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506120817.nRfhoHbQ-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/cpuidle/cpuidle-sifive-dmc-pd.c:8:
In file included from include/linux/of_device.h:5:
In file included from include/linux/device/driver.h:21:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/riscv/include/asm/elf.h:12:
In file included from include/linux/compat.h:17:
include/linux/fs.h:3975:15: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
3975 | if (unlikely(get_user(c, path)))
| ^
arch/riscv/include/asm/uaccess.h:274:3: note: expanded from macro 'get_user'
274 | __get_user((x), __p) : \
| ^
arch/riscv/include/asm/uaccess.h:244:2: note: expanded from macro '__get_user'
244 | __get_user_error(__gu_val, __gu_ptr, __gu_err); \
| ^
arch/riscv/include/asm/uaccess.h:207:2: note: expanded from macro '__get_user_error'
207 | __get_user_nocheck(x, ptr, __gu_failed); \
| ^
arch/riscv/include/asm/uaccess.h:196:3: note: expanded from macro '__get_user_nocheck'
196 | __get_user_8((x), __gu_ptr, label); \
| ^
arch/riscv/include/asm/uaccess.h:130:2: note: expanded from macro '__get_user_8'
130 | u32 __user *__ptr = (u32 __user *)(ptr); \
| ^
>> drivers/cpuidle/cpuidle-sifive-dmc-pd.c:42:27: error: use of undeclared identifier 'pm_domain_cpu_gov'
42 | ret = pm_genpd_init(pd, &pm_domain_cpu_gov, false);
| ^
1 warning and 1 error generated.
--
In file included from drivers/cpuidle/cpuidle-riscv-sbi.c:16:
In file included from include/linux/cpu_cooling.h:17:
In file included from include/linux/thermal.h:15:
In file included from include/linux/device.h:32:
In file included from include/linux/device/driver.h:21:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/riscv/include/asm/elf.h:12:
In file included from include/linux/compat.h:17:
include/linux/fs.h:3975:15: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
3975 | if (unlikely(get_user(c, path)))
| ^
arch/riscv/include/asm/uaccess.h:274:3: note: expanded from macro 'get_user'
274 | __get_user((x), __p) : \
| ^
arch/riscv/include/asm/uaccess.h:244:2: note: expanded from macro '__get_user'
244 | __get_user_error(__gu_val, __gu_ptr, __gu_err); \
| ^
arch/riscv/include/asm/uaccess.h:207:2: note: expanded from macro '__get_user_error'
207 | __get_user_nocheck(x, ptr, __gu_failed); \
| ^
arch/riscv/include/asm/uaccess.h:196:3: note: expanded from macro '__get_user_nocheck'
196 | __get_user_8((x), __gu_ptr, label); \
| ^
arch/riscv/include/asm/uaccess.h:130:2: note: expanded from macro '__get_user_8'
130 | u32 __user *__ptr = (u32 __user *)(ptr); \
| ^
>> drivers/cpuidle/cpuidle-riscv-sbi.c:410:25: error: use of undeclared identifier 'pm_domain_cpu_gov'
410 | pd_gov = pd->states ? &pm_domain_cpu_gov : NULL;
| ^
1 warning and 1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS_OF
Depends on [n]: PM_GENERIC_DOMAINS [=n] && OF [=y]
Selected by [y]:
- SIFIVE_DMC_PD_CPUIDLE [=y] && CPU_IDLE [=y] && RISCV [=y] && ARCH_SIFIVE [=y]
vim +/pm_domain_cpu_gov +42 drivers/cpuidle/cpuidle-sifive-dmc-pd.c
26
27 static int sifive_dmc_probe(struct platform_device *pdev)
28 {
29 struct device *dev = &pdev->dev;
30 struct device_node *np = dev->of_node;
31 struct generic_pm_domain *pd;
32 struct of_phandle_args child, parent;
33 int ret = -ENOMEM;
34
35 pd = dt_idle_pd_alloc(np, sbi_dt_parse_state_node);
36 if (!pd)
37 goto fail;
38
39 pd->flags |= GENPD_FLAG_IRQ_SAFE | GENPD_FLAG_CPU_DOMAIN;
40 pd->power_off = sbi_cpuidle_pd_power_off;
41
> 42 ret = pm_genpd_init(pd, &pm_domain_cpu_gov, false);
43 if (ret)
44 goto free_pd;
45
46 ret = of_genpd_add_provider_simple(np, pd);
47 if (ret)
48 goto remove_pd;
49
50 if (of_parse_phandle_with_args(np, "power-domains",
51 "#power-domain-cells", 0,
52 &parent) == 0) {
53 child.np = np;
54 child.args_count = 0;
55
56 if (of_genpd_add_subdomain(&parent, &child))
57 pr_warn("%pOF failed to add subdomain: %pOF\n",
58 parent.np, child.np);
59 else
60 pr_debug("%pOF has a child subdomain: %pOF.\n",
61 parent.np, child.np);
62 }
63
64 platform_set_drvdata(pdev, pd);
65 pm_runtime_enable(dev);
66 pr_info("%s create success\n", pd->name);
67 return 0;
68
69 remove_pd:
70 pm_genpd_remove(pd);
71 free_pd:
72 dt_idle_pd_free(pd);
73 fail:
74 pr_info("%s create fail\n", pd->name);
75
76 return ret;
77 }
78
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists