diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-09-26 14:10:22 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-09-26 19:53:48 +0300 |
commit | bbfe987c5a2854705393ad79813074e5eadcbde6 (patch) | |
tree | 0407ba88323a216d6fbbe836156d68c0190b99e2 /drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | |
parent | 0a6e9e098fcc318fec0f45a05a5c4743a81a60d9 (diff) | |
download | linux-bbfe987c5a2854705393ad79813074e5eadcbde6.tar.xz |
PM: hibernate: Fix pm_hibernation_mode_is_suspend() build breakage
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_display.c')
0 files changed, 0 insertions, 0 deletions