From: kernel test robot <lkp@intel.com>
To: Mario Limonciello <superm1@kernel.org>,
mario.limonciello@amd.com, rafael@kernel.org,
len.brown@intel.com, pavel@kernel.org, guoqing.zhang@amd.com
Cc: oe-kbuild-all@lists.linux.dev,
Randy Dunlap <rdunlap@infradead.org>,
linux-pm@vger.kernel.org
Subject: Re: [PATCH] PM: hibernate: Add stub for pm_hibernate_is_recovering()
Date: Sun, 13 Jul 2025 05:44:34 +0800 [thread overview]
Message-ID: <202507130544.2Nxzh8Qg-lkp@intel.com> (raw)
In-Reply-To: <20250712185851.591024-1-superm1@kernel.org>
Hi Mario,
kernel test robot noticed the following build errors:
[auto build test ERROR on linux-next/master]
[cannot apply to linus/master v6.16-rc5]
[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/PM-hibernate-Add-stub-for-pm_hibernate_is_recovering/20250713-025938
base: linux-next/master
patch link: https://lore.kernel.org/r/20250712185851.591024-1-superm1%40kernel.org
patch subject: [PATCH] PM: hibernate: Add stub for pm_hibernate_is_recovering()
config: i386-buildonly-randconfig-003-20250713 (https://download.01.org/0day-ci/archive/20250713/202507130544.2Nxzh8Qg-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250713/202507130544.2Nxzh8Qg-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/202507130544.2Nxzh8Qg-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/base/power/main.c:77:6: error: redefinition of 'pm_hibernate_is_recovering'
77 | bool pm_hibernate_is_recovering(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/base/power/main.c:32:
include/linux/suspend.h:420:20: note: previous definition of 'pm_hibernate_is_recovering' with type 'bool(void)' {aka '_Bool(void)'}
420 | static inline bool pm_hibernate_is_recovering(void) { return false; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/pm_hibernate_is_recovering +77 drivers/base/power/main.c
098dff738abbea Rafael J. Wysocki 2010-09-22 68
c2aaddbd2deded Samuel Zhang 2025-07-10 69 /**
c2aaddbd2deded Samuel Zhang 2025-07-10 70 * pm_hibernate_is_recovering - if recovering from hibernate due to error.
c2aaddbd2deded Samuel Zhang 2025-07-10 71 *
c2aaddbd2deded Samuel Zhang 2025-07-10 72 * Used to query if dev_pm_ops.thaw() is called for normal hibernation case or
c2aaddbd2deded Samuel Zhang 2025-07-10 73 * recovering from some error.
c2aaddbd2deded Samuel Zhang 2025-07-10 74 *
c2aaddbd2deded Samuel Zhang 2025-07-10 75 * Return: true for error case, false for normal case.
c2aaddbd2deded Samuel Zhang 2025-07-10 76 */
c2aaddbd2deded Samuel Zhang 2025-07-10 @77 bool pm_hibernate_is_recovering(void)
c2aaddbd2deded Samuel Zhang 2025-07-10 78 {
c2aaddbd2deded Samuel Zhang 2025-07-10 79 return pm_transition.event == PM_EVENT_RECOVER;
c2aaddbd2deded Samuel Zhang 2025-07-10 80 }
c2aaddbd2deded Samuel Zhang 2025-07-10 81 EXPORT_SYMBOL_GPL(pm_hibernate_is_recovering);
c2aaddbd2deded Samuel Zhang 2025-07-10 82
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-07-12 21:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-12 18:58 [PATCH] PM: hibernate: Add stub for pm_hibernate_is_recovering() Mario Limonciello
2025-07-12 21:44 ` kernel test robot [this message]
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=202507130544.2Nxzh8Qg-lkp@intel.com \
--to=lkp@intel.com \
--cc=guoqing.zhang@amd.com \
--cc=len.brown@intel.com \
--cc=linux-pm@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pavel@kernel.org \
--cc=rafael@kernel.org \
--cc=rdunlap@infradead.org \
--cc=superm1@kernel.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