From: Brian Norris Date: Sat, 15 Jul 2017 03:12:12 +0000 (-0700) Subject: drm/vgem: add compat_ioctl support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ad364f447e367a4b997cc75093600663caeedb68;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/vgem: add compat_ioctl support DRM drivers should supply a compat version if they're going to provide an ioctl implementation at all. This can confuse 32-bit user space on a 64-bit system. Signed-off-by: Brian Norris Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20170715031212.108695-1-briannorris@chromium.org --- diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index c938af8c40cf..12289673f457 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c @@ -278,6 +278,7 @@ static const struct file_operations vgem_driver_fops = { .poll = drm_poll, .read = drm_read, .unlocked_ioctl = drm_ioctl, + .compat_ioctl = drm_compat_ioctl, .release = drm_release, };