]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/vram-helper: Remove invariant parameters from internal kmap function
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 3 Nov 2020 09:30:06 +0000 (10:30 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 9 Nov 2020 08:16:22 +0000 (09:16 +0100)
commit1086db71a1dbbfb32ffb42cf0d540b69956f951e
tree0e5b65224fb7cf26db59d1c076d050f54a35084f
parent3fb91f56aea4608adebf7798788ac98b42a13838
drm/vram-helper: Remove invariant parameters from internal kmap function

The parameters map and is_iomem are always of the same value. Removed them
to prepares the function for conversion to struct dma_buf_map.

v4:
* don't check for !kmap->virtual; will always be false

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Christian König <christian.koenig@amd.com>
Tested-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201103093015.1063-2-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_vram_helper.c