mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
drm/vmwgfx: Inline vmw_verify_access()
Vmwgfx is the only user of the TTM's verify_access callback. Inline the call and avoid the indirection through the function pointer. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Zack Rusin <zackr@vmware.com> Acked-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210525151055.8174-7-tzimmermann@suse.de
This commit is contained in:
@@ -661,14 +661,6 @@ static void vmw_evict_flags(struct ttm_buffer_object *bo,
|
||||
*placement = vmw_sys_placement;
|
||||
}
|
||||
|
||||
static int vmw_verify_access(struct ttm_buffer_object *bo, struct file *filp)
|
||||
{
|
||||
struct ttm_object_file *tfile =
|
||||
vmw_fpriv((struct drm_file *)filp->private_data)->tfile;
|
||||
|
||||
return vmw_user_bo_verify_access(bo, tfile);
|
||||
}
|
||||
|
||||
static int vmw_ttm_io_mem_reserve(struct ttm_device *bdev, struct ttm_resource *mem)
|
||||
{
|
||||
struct vmw_private *dev_priv = container_of(bdev, struct vmw_private, bdev);
|
||||
@@ -771,7 +763,6 @@ struct ttm_device_funcs vmw_bo_driver = {
|
||||
.eviction_valuable = ttm_bo_eviction_valuable,
|
||||
.evict_flags = vmw_evict_flags,
|
||||
.move = vmw_move,
|
||||
.verify_access = vmw_verify_access,
|
||||
.swap_notify = vmw_swap_notify,
|
||||
.io_mem_reserve = &vmw_ttm_io_mem_reserve,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user