]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/gma500: Add compat ioctl
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Tue, 1 Nov 2016 14:43:15 +0000 (15:43 +0100)
committerSean Paul <seanpaul@chromium.org>
Wed, 2 Nov 2016 15:31:04 +0000 (11:31 -0400)
Hook up drm_compat_ioctl to support 32-bit userspace on 64-bit kernels.
It turns out that N2600 and N2800 comes with 64-bit enabled. We
previously assumed there where no such systems out there.

Cc: stable@vger.kernel.org
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20161101144315.2955-1-patrik.r.jakobsson@gmail.com
drivers/gpu/drm/gma500/psb_drv.c

index 50eb944fb78a8e80fe81df7f1dc291f14e16e0f8..8f3ca526bd1bd43118e78e8bf8eea8a9181ed403 100644 (file)
@@ -473,6 +473,9 @@ static const struct file_operations psb_gem_fops = {
        .open = drm_open,
        .release = drm_release,
        .unlocked_ioctl = psb_unlocked_ioctl,
+#ifdef CONFIG_COMPAT
+       .compat_ioctl = drm_compat_ioctl,
+#endif
        .mmap = drm_gem_mmap,
        .poll = drm_poll,
        .read = drm_read,