summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorPerry Yuan <perry.yuan@amd.com>2025-07-07 10:45:28 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-08-04 14:26:38 -0400
commit8e3967a71e6fca9c871f98b9289b59c82b88b729 (patch)
treeb27777a36105abe12620ef63afe52528250e8efc /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parent6716a823d18d422c356c2cd0c087f46d84c9e713 (diff)
drm/amdgpu: Fix build error when CONFIG_SUSPEND is disabled
The variable `pm_suspend_target_state` is conditionally defined only when `CONFIG_SUSPEND` is enabled (see `include/linux/suspend.h`). Directly referencing it without guarding by `#ifdef CONFIG_SUSPEND` causes build failures when suspend functionality is disabled (e.g., `CONFIG_SUSPEND=n`). Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Perry Yuan <perry.yuan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions