]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: fix link error for !PM_SLEEP
authorArnd Bergmann <arnd@arndb.de>
Mon, 14 Jul 2025 08:16:25 +0000 (10:16 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Aug 2025 18:36:54 +0000 (14:36 -0400)
commit4d22db6d070ed3934f02ed15391283f6feb258ad
tree1de90cb0255e4c46183323c27c657a69d63c3139
parent3cf06bd4cf2512d564fdb451b07de0cebe7b138d
drm/amdgpu: fix link error for !PM_SLEEP

When power management is not enabled in the kernel build, the newly
added hibernation changes cause a link failure:

arm-linux-gnueabi-ld: drivers/gpu/drm/amd/amdgpu/amdgpu_drv.o: in function `amdgpu_pmops_thaw':
amdgpu_drv.c:(.text+0x1514): undefined reference to `pm_hibernate_is_recovering'

Make the power management code in this driver conditional on
CONFIG_PM and CONFIG_PM_SLEEP

Fixes: 530694f54dd5 ("drm/amdgpu: do not resume device in thaw for normal hibernation")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20250714081635.4071570-1-arnd@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c