diff options
| author | 2025-09-26 13:10:22 +0200 | |
|---|---|---|
| committer | 2025-10-23 16:24:41 +0200 | |
| commit | b5b378d254e270bafb4bad98f69a2228c1441242 (patch) | |
| tree | ebda683e391b7684bdfc63c3308868e46a93d2e3 /scripts/git:/ssh:/git@git.zx2c4.com | |
| parent | drm/xe: Don't allow evicting of BOs in same VM in array of VM binds (diff) | |
| download | laptop-kernel-b5b378d254e270bafb4bad98f69a2228c1441242.tar.xz laptop-kernel-b5b378d254e270bafb4bad98f69a2228c1441242.zip | |
PM: hibernate: Fix pm_hibernation_mode_is_suspend() build breakage
commit bbfe987c5a2854705393ad79813074e5eadcbde6 upstream.
Commit 495c8d35035e ("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 0a6e9e098fcc ("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: 0a6e9e098fcc ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
