Skip to contentSkip to conversation

drivers/firmware/arm/psci/psci.c:81:13: warning: variable 'psci_system_off2_hibernate_supported' set but not used

PATCH kernel test robot 1 participant 1 message Nov 9

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git for-next/arm_fw/updates
head:   49c49ca0c4d02848a9576f72c4741c38c5ba09de
commit: 49c49ca0c4d02848a9576f72c4741c38c5ba09de [2/2] firmware: arm: Group interface drivers under arm/
config: arm64-randconfig-2002-20261109 (https://download.01.org/0day-ci/archive/20261109/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 0d1bc7245734217f06f9bb7e09f9dfd09d31361b)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261109/[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/firmware/arm/psci/psci.c:81:13: warning: variable 'psci_system_off2_hibernate_supported' set but not used [-Wunused-but-set-global]
      81 | static bool psci_system_off2_hibernate_supported;
         |             ^

1 warning generated.

vim +/psci_system_off2_hibernate_supported +81 drivers/firmware/arm/psci/psci.c

6df3e14436f6ee2 drivers/firmware/psci/psci.c David Brazdil     2020-12-02  69  
068654c200cc329 drivers/firmware/psci.c      Lorenzo Pieralisi 2015-05-26  70  #define PSCI_0_2_POWER_STATE_MASK		\
068654c200cc329 drivers/firmware/psci.c      Lorenzo Pieralisi 2015-05-26  71  				(PSCI_0_2_POWER_STATE_ID_MASK | \
068654c200cc329 drivers/firmware/psci.c      Lorenzo Pieralisi 2015-05-26  72  				PSCI_0_2_POWER_STATE_TYPE_MASK | \
068654c200cc329 drivers/firmware/psci.c      Lorenzo Pieralisi 2015-05-26  73  				PSCI_0_2_POWER_STATE_AFFL_MASK)
068654c200cc329 drivers/firmware/psci.c      Lorenzo Pieralisi 2015-05-26  74  
a5c00bb28da0bb3 drivers/firmware/psci.c      Lorenzo Pieralisi 2015-05-26  75  #define PSCI_1_0_EXT_POWER_STATE_MASK		\
a5c00bb28da0bb3 drivers/firmware/psci.c      Lorenzo Pieralisi 2015-05-26  76  				(PSCI_1_0_EXT_POWER_STATE_ID_MASK | \
a5c00bb28da0bb3 drivers/firmware/psci.c      Lorenzo Pieralisi 2015-05-26  77  				PSCI_1_0_EXT_POWER_STATE_TYPE_MASK)
a5c00bb28da0bb3 drivers/firmware/psci.c      Lorenzo Pieralisi 2015-05-26  78  
a5c00bb28da0bb3 drivers/firmware/psci.c      Lorenzo Pieralisi 2015-05-26  79  static u32 psci_cpu_suspend_feature;
4302e381a870aaf drivers/firmware/psci/psci.c Sudeep Holla      2019-04-15  80  static bool psci_system_reset2_supported;

3e251afaec9a671 drivers/firmware/psci/psci.c David Woodhouse 2024-10-19 @81 static bool psci_system_off2_hibernate_supported;
a5c00bb28da0bb3 drivers/firmware/psci.c Lorenzo Pieralisi 2015-05-26 82

:::::: The code at line 81 was first introduced by commit
:::::: 3e251afaec9a671716c9cc4c184f4e4a09915ec4 arm64: Use SYSTEM_OFF2 PSCI call to power off for hibernate

:::::: TO: David Woodhouse <[email protected]>
:::::: CC: Oliver Upton <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki