Files
linux-stable-mirror/include/linux
Rafael J. Wysocki bbfe987c5a PM: hibernate: Fix pm_hibernation_mode_is_suspend() build breakage
Commit 495c8d3503 ("PM: hibernate: Add pm_hibernation_mode_is_suspend()")
that introduced pm_hibernation_mode_is_suspend() did not define it in
the case when CONFIG_HIBERNATION is unset, but CONFIG_SUSPEND is set.

Subsequent commit 0a6e9e098f ("drm/amd: Fix hybrid sleep") made the
amdgpu driver use that function which led to kernel build breakage in
the case mentioned above [1].

Address this by using appropriate #ifdeffery around the definition of
pm_hibernation_mode_is_suspend().

Fixes: 0a6e9e098f ("drm/amd: Fix hybrid sleep")
Reported-by: KernelCI bot <bot@kernelci.org>
Closes: https://groups.io/g/kernelci-results/topic/regression_pm_testing/115439919 [1]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
2025-09-26 18:53:48 +02:00
..
2025-07-23 01:38:56 -04:00
2025-07-21 18:18:51 +01:00
2025-07-31 11:28:03 -04:00
2025-07-31 18:23:53 -07:00
2025-07-22 15:57:02 +00:00
2025-07-24 19:12:32 -07:00
2025-08-02 12:06:10 -07:00
2025-07-31 16:11:43 -05:00
2025-09-02 16:23:13 -07:00
2025-07-22 18:07:11 +02:00
2025-07-23 11:56:02 +02:00
2025-07-21 17:48:32 -07:00
2025-08-02 12:01:37 -07:00