The pin and unpin callbacks in struct drm_gem_object_funcs are for PRIME exported dma-bufs. Remove the pin calls in the client code, drop the unnecessary pin callbacks from gem-vram and inline drm_gem_pin() into the only remaining caller. Do the equivalent for drm_gem_unpin().
AFAICT the long-term plan is to switch to dynamic dma-buf imports and remove pin/unpin from GEM object functions. v2: - fix coding style and comments (Dmitry) Thomas Zimmermann (4): drm/client: Do not pin in drm_client_buffer_vmap() drm/gem-vram: Do not set pin and unpin callbacks drm/gem-vram: Un-export pin helpers drm/gem: Inline drm_gem_pin() into PRIME helpers drivers/gpu/drm/drm_client.c | 35 ++---------- drivers/gpu/drm/drm_gem.c | 32 ----------- drivers/gpu/drm/drm_gem_vram_helper.c | 79 +-------------------------- drivers/gpu/drm/drm_internal.h | 4 -- drivers/gpu/drm/drm_prime.c | 22 +++++++- include/drm/drm_gem.h | 3 +- include/drm/drm_gem_vram_helper.h | 2 - 7 files changed, 30 insertions(+), 147 deletions(-) base-commit: 842c3c276c106040f9b96d72b9df35ed6aed9ae9 -- 2.49.0