Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/vram: drop verify_access

Not needed any more.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20191016115203.20095-11-kraxel@redhat.com

-22
-22
drivers/gpu/drm/drm_gem_vram_helper.c
··· 552 552 *pl = gbo->placement; 553 553 } 554 554 555 - static int drm_gem_vram_bo_driver_verify_access(struct drm_gem_vram_object *gbo, 556 - struct file *filp) 557 - { 558 - return drm_vma_node_verify_access(&gbo->bo.base.vma_node, 559 - filp->private_data); 560 - } 561 - 562 555 static void drm_gem_vram_bo_driver_move_notify(struct drm_gem_vram_object *gbo, 563 556 bool evict, 564 557 struct ttm_mem_reg *new_mem) ··· 816 823 drm_gem_vram_bo_driver_evict_flags(gbo, placement); 817 824 } 818 825 819 - static int bo_driver_verify_access(struct ttm_buffer_object *bo, 820 - struct file *filp) 821 - { 822 - struct drm_gem_vram_object *gbo; 823 - 824 - /* TTM may pass BOs that are not GEM VRAM BOs. */ 825 - if (!drm_is_gem_vram(bo)) 826 - return -EINVAL; 827 - 828 - gbo = drm_gem_vram_of_bo(bo); 829 - 830 - return drm_gem_vram_bo_driver_verify_access(gbo, filp); 831 - } 832 - 833 826 static void bo_driver_move_notify(struct ttm_buffer_object *bo, 834 827 bool evict, 835 828 struct ttm_mem_reg *new_mem) ··· 872 893 .init_mem_type = bo_driver_init_mem_type, 873 894 .eviction_valuable = ttm_bo_eviction_valuable, 874 895 .evict_flags = bo_driver_evict_flags, 875 - .verify_access = bo_driver_verify_access, 876 896 .move_notify = bo_driver_move_notify, 877 897 .io_mem_reserve = bo_driver_io_mem_reserve, 878 898 .io_mem_free = bo_driver_io_mem_free,