Skip to contentSkip to conversation

drm: ttm: select CONFIG_SHMEM

PATCH New Arnd Bergmann 1 participant 1 message Apr 11, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: ttm: select CONFIG_SHMEM

From: Arnd Bergmann <[email protected]>

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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()")
---
 drivers/gpu/drm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/Kconfig +1 -0
index b3bbb3f20b2a..831bd384f1fd 100644
@@ -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
Signature · 1 line
2.39.5