Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1568276 > unrolled thread

[PATCH 3.12 047/235] drm/gma500: Add compat ioctl

Started byJiri Slaby <jslaby@suse.cz>
First post2017-01-27 13:00 +0100
Last post2017-01-27 13:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.12 047/235] drm/gma500: Add compat ioctl Jiri Slaby <jslaby@suse.cz> - 2017-01-27 13:00 +0100

#1568276 — [PATCH 3.12 047/235] drm/gma500: Add compat ioctl

FromJiri Slaby <jslaby@suse.cz>
Date2017-01-27 13:00 +0100
Subject[PATCH 3.12 047/235] drm/gma500: Add compat ioctl
Message-ID<t4dma-3Gl-17@gated-at.bofh.it>
From: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>

3.12-stable review patch.  If anyone has any objections, please let me know.

===============

commit 0a97c81a9717431e6c57ea845b59c3c345edce67 upstream.

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.

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
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
 drivers/gpu/drm/gma500/psb_drv.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
index fcb4e9ff1f20..09c155737daf 100644
--- a/drivers/gpu/drm/gma500/psb_drv.c
+++ b/drivers/gpu/drm/gma500/psb_drv.c
@@ -620,6 +620,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,
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web