linux/include/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
..
ttm_backup.h drm/ttm: Remove the struct ttm_backup abstraction 2025-05-06 10:57:27 +02:00
ttm_bo.h drm/ttm: Add helpers for shrinking 2025-03-05 17:08:59 +01:00
ttm_caching.h drm/ttm: make ttm_caching.h self-contained 2024-03-11 11:47:06 +02:00
ttm_device.h drm/ttm: Fix incorrect use of kernel-doc format 2024-10-11 13:46:55 +02:00
ttm_execbuf_util.h drm/ttm: fix ttm_execbuf_util.h kernel-doc warnings 2024-03-11 11:47:06 +02:00
ttm_kmap_iter.h drm/ttm: fix ttm_kmap_iter.h kernel-doc warnings 2024-03-11 11:47:06 +02:00
ttm_placement.h drm/ttm: replace busy placement with flags v6 2024-01-25 09:59:44 +01:00
ttm_pool.h drm/ttm/pool, drm/ttm/tt: Provide a helper to shrink pages 2025-03-05 17:08:59 +01:00
ttm_range_manager.h drm/ttm: Try to check if new ttm man out of bounds during compile 2021-09-13 10:14:28 +02:00
ttm_resource.h Merge drm/drm-next into drm-misc-next 2025-02-06 13:47:32 +01:00
ttm_tt.h drm/ttm: Remove the struct ttm_backup abstraction 2025-05-06 10:57:27 +02:00