[PATCH] drm: ttm: select CONFIG_SHMEM
Arnd Bergmann
arnd at kernel.org
Fri Apr 11 12:55:25 UTC 2025
From: Arnd Bergmann <arnd at arndb.de>
ttm now directly calls into shmem code, which fails to build when
that is disabled at compile time.
ld.lld-21: error: undefined symbol: shmem_writeout
>>> referenced by ttm_backup.c
>>> drivers/gpu/drm/ttm/ttm_backup.o:(ttm_backup_backup_page) in archive vmlinux.a
Select SHMEM here.
Fixes: fe75adffac33 ("ttm: Call shmem_writeout() from ttm_backup_backup_page()")
Signed-off-by: Arnd Bergmann <arnd at arndb.de>
---
drivers/gpu/drm/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index b3bbb3f20b2a..831bd384f1fd 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -187,6 +187,7 @@ source "drivers/gpu/drm/display/Kconfig"
config DRM_TTM
tristate
depends on DRM && MMU
+ select SHMEM
help
GPU memory management subsystem for devices with multiple
GPU memory types. Will be enabled automatically if a device driver
--
2.39.5
More information about the dri-devel
mailing list