mirror-linux/drivers/gpu/drm/ttm
Thomas Hellström d4ad53adfe drm/ttm: Remove the struct ttm_backup abstraction
The abstraction was previously added to support separate
ttm_backup implementations.

However with the current implementation casting from a
struct file to a struct ttm_backup, we run into trouble since
struct file may have randomized the layout and gcc complains.

Remove the struct ttm_backup abstraction

Cc: dri-devel@lists.freedesktop.org
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Reported-by: Kees Cook <kees@kernel.org>
Closes: https://lore.kernel.org/dri-devel/9c8dbbafdaf9f3f089da2cde5a772d69579b3795.camel@linux.intel.com/T/#mb153ab9216cb813b92bdeb36f391ad4808c2ba29
Suggested-by: Christian König <christian.koenig@amd.com>
Fixes: 70d645deac ("drm/ttm: Add helpers for shrinking")
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250502130014.3156-1-thomas.hellstrom@linux.intel.com
2025-05-06 10:57:27 +02:00
..
tests drm/ttm: Handle cgroup based eviction in TTM 2025-01-10 09:54:49 +01:00
Makefile drm/ttm: Provide a shmem backup implementation 2025-03-05 17:08:59 +01:00
ttm_agp_backend.c
ttm_backup.c drm/ttm: Remove the struct ttm_backup abstraction 2025-05-06 10:57:27 +02:00
ttm_bo.c drm/ttm: fix the warning for hit_low and evict_low 2025-04-28 10:01:03 +02:00
ttm_bo_util.c drm/ttm: Add helpers for shrinking 2025-03-05 17:08:59 +01:00
ttm_bo_vm.c UAPI Changes: 2024-12-13 10:19:44 +10:00
ttm_device.c drm/ttm: Move swapped objects off the manager's LRU list 2024-10-09 13:41:30 +02:00
ttm_execbuf_util.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
ttm_module.c
ttm_module.h
ttm_pool.c drm/ttm: Remove the struct ttm_backup abstraction 2025-05-06 10:57:27 +02:00
ttm_range_manager.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
ttm_resource.c drm/ttm: use ttm_resource_unevictable() to replace pin_count and swapped 2025-02-10 13:39:03 +01:00
ttm_sys_manager.c
ttm_tt.c drm/ttm: Remove the struct ttm_backup abstraction 2025-05-06 10:57:27 +02:00