On Mon, 2021-10-18 at 18:45 +0100, Matthew Auld wrote: > It looks like we will need this in some more places, so extract as a > helper. > > Signed-off-by: Matthew Auld <matthew.auld@xxxxxxxxx> > Cc: Thomas Hellström <thomas.hellstrom@xxxxxxxxxxxxxxx> > --- > drivers/gpu/drm/i915/gem/i915_gem_object.c | 26 > ++++++++++++++++++++++ > drivers/gpu/drm/i915/gem/i915_gem_object.h | 1 + > drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 17 +------------- > 3 files changed, 28 insertions(+), 16 deletions(-) > Reviewed-by: Thomas Hellström <thomas.hellstrom@xxxxxxxxxxxxxxx>