Hi Mario, kernel test robot noticed the following build warnings:
[auto build test WARNING on amd-pstate/linux-next] [also build test WARNING on amd-pstate/bleeding-edge linus/master v6.17-rc7 next-20250924] [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/Mario-Limonciello-AMD/PM-hibernate-Fix-hybrid-sleep/20250925-045432 base: https://git.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git linux-next patch link: https://lore.kernel.org/r/20250924205211.1059571-3-superm1%40kernel.org patch subject: [PATCH 2/3] PM: hibernate: Add pm_hibernation_mode_is_suspend() config: i386-randconfig-004-20250925 (https://download.01.org/0day-ci/archive/20250925/[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/20250925/[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 >>): kernel/power/hibernate.c: In function 'pm_hibernation_mode_is_suspend': kernel/power/hibernate.c:88:36: error: 'HIBERNATION_SUSPEND' undeclared (first use in this function); did you mean 'HIBERNATION_SHUTDOWN'? 88 | return hibernation_mode == HIBERNATION_SUSPEND; | ^~~~~~~~~~~~~~~~~~~ | HIBERNATION_SHUTDOWN kernel/power/hibernate.c:88:36: note: each undeclared identifier is reported only once for each function it appears in kernel/power/hibernate.c: In function 'hibernate': kernel/power/hibernate.c:875:41: error: 'HIBERNATION_SUSPEND' undeclared (first use in this function); did you mean 'HIBERNATION_SHUTDOWN'? 875 | if (hibernation_mode != HIBERNATION_SUSPEND) | ^~~~~~~~~~~~~~~~~~~ | HIBERNATION_SHUTDOWN kernel/power/hibernate.c: In function 'pm_hibernation_mode_is_suspend': >> kernel/power/hibernate.c:89:1: warning: control reaches end of non-void >> function [-Wreturn-type] 89 | } | ^ vim +89 kernel/power/hibernate.c 82 83 /** 84 * pm_hibernation_mode_is_suspend - Check if hibernation has been set to suspend 85 */ 86 bool pm_hibernation_mode_is_suspend(void) 87 { > 88 return hibernation_mode == HIBERNATION_SUSPEND; > 89 } 90 EXPORT_SYMBOL_GPL(pm_hibernation_mode_is_suspend); 91 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
