✓ CI.checkpatch: success for drm/ttm: Remove the struct ttm_backup abstraction

Patchwork patchwork at emeril.freedesktop.org
Fri May 2 14:25:40 UTC 2025


== Series Details ==

Series: drm/ttm: Remove the struct ttm_backup abstraction
URL   : https://patchwork.freedesktop.org/series/148553/
State : success

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
202708c00696422fd217223bb679a353a5936e23
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 4e2760bb06c96ef42d62bf903607f37e2a524546
Author: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Date:   Fri May 2 15:00:14 2025 +0200

    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 at lists.freedesktop.org
    Cc: Matthew Brost <matthew.brost at intel.com>
    Cc: Dave Airlie <airlied at redhat.com>
    Cc: Christian König <christian.koenig at amd.com>
    Cc: Matthew Auld <matthew.auld at intel.com>
    Cc: Al Viro <viro at zeniv.linux.org.uk>
    Reported-by: Kees Cook <kees at kernel.org>
    Closes: https://lore.kernel.org/dri-devel/9c8dbbafdaf9f3f089da2cde5a772d69579b3795.camel@linux.intel.com/T/#mb153ab9216cb813b92bdeb36f391ad4808c2ba29
    Suggested-by: Christian König <christian.koenig at amd.com>
    Fixes: 70d645deac98 ("drm/ttm: Add helpers for shrinking")
    Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
    Reviewed-by: Christian König <christian.koenig at amd.com>
+ /mt/dim checkpatch 0135b020716c4986b53b735e41753ebb8ed43c3e drm-intel
4e2760bb06c9 drm/ttm: Remove the struct ttm_backup abstraction




More information about the Intel-xe mailing list