drivers/pmdomain/core.c:36:23: warning: 'genpd_provider_bus' defined but not used
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm.git next head: ea1ca762328194de780a8e92df0b2e41bf6eeed2 commit: ea1ca762328194de780a8e92df0b2e41bf6eeed2 [12/12] pmdomain: fix early domain registration config: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20260611/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260611/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> drivers/pmdomain/core.c:36:23: warning: 'genpd_provider_bus' defined but not used [-Wunused-variable]
36 | static struct device *genpd_provider_bus;
| ^~~~~~~~~~~~~~~~~~vim +/genpd_provider_bus +36 drivers/pmdomain/core.c
31cb75077003ac Ulf Hansson 2025-07-01 34 31cb75077003ac Ulf Hansson 2025-07-01 35 /* The parent for genpd_provider devices. */
a96e40f4afdcb5 Johan Hovold 2026-04-24 @36 static struct device *genpd_provider_bus; 31cb75077003ac Ulf Hansson 2025-07-01 37
:::::: The code at line 36 was first introduced by commit
:::::: a96e40f4afdcb52a9c97a5465c964e010734d105 pmdomain: core: switch to dynamic root device
:::::: TO: Johan Hovold <[email protected]>
:::::: CC: Ulf Hansson <[email protected]>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Quoted 12 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm.git next head: ea1ca762328194de780a8e92df0b2e41bf6eeed2 commit: ea1ca762328194de780a8e92df0b2e41bf6eeed2 [12/12] pmdomain: fix early domain registration config: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20260611/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260611/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Quoted 5 lines
All warnings (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
drivers/pmdomain/core.c:36:23: warning: 'genpd_provider_bus' defined but not used [-Wunused-variable]36 | static struct device *genpd_provider_bus; | ^~~~~~~~~~~~~~~~~~
Bah. Apparently the only users of the bus are under CONFIG_PM_GENERIC_DOMAINS_OF so this one either needs to be marked __maybe_unsed or be moved inside the ifdef.
I'll send a follow-up fix.
Johan
Quoted 17 lines · Johan Hovold
Quoted 15 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm.git next head: ea1ca762328194de780a8e92df0b2e41bf6eeed2 commit: ea1ca762328194de780a8e92df0b2e41bf6eeed2 [12/12] pmdomain: fix early domain registration config: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20260611/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260611/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All warnings (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
drivers/pmdomain/core.c:36:23: warning: 'genpd_provider_bus' defined but not used [-Wunused-variable]
Quoted 8 lines
Quoted 2 lines
36 | static struct device *genpd_provider_bus; | ^~~~~~~~~~~~~~~~~~Bah. Apparently the only users of the bus are under
CONFIG_PM_GENERIC_DOMAINS_OFso this one either needs to be marked__maybe_unsedor be moved inside the ifdef.I'll send a follow-up fix.
I suggest we move it under CONFIG_PM_GENERIC_DOMAINS_OF along with the other corresponding parameters like "genpd_bus_registered".
Quoted 2 lines
Johan
Kind regards
Uffe
Quoted 7 lines · Ulf Hansson
Quoted 6 lines · Johan Hovold
Quoted 3 lines · kernel test robot
Quoted 1 line
Quoted 1 line
drivers/pmdomain/core.c:36:23: warning: 'genpd_provider_bus' defined but not used [-Wunused-variable]36 | static struct device *genpd_provider_bus; | ^~~~~~~~~~~~~~~~~~
Quoted 8 lines
Quoted 5 lines
Bah. Apparently the only users of the bus are under
CONFIG_PM_GENERIC_DOMAINS_OFso this one either needs to be marked__maybe_unsedor be moved inside the ifdef.I'll send a follow-up fix.
I suggest we move it under
CONFIG_PM_GENERIC_DOMAINS_OFalong with the other corresponding parameters like "genpd_bus_registered".
Thanks, that's what I settled for too.
Johan