Patchwork drm/gma500: Add compat ioctl

login
register
mail settings
Submitter Patrik Jakobsson
Date Nov. 1, 2016, 2:43 p.m.
Message ID <20161101144315.2955-1-patrik.r.jakobsson@gmail.com>
Download mbox | patch
Permalink /patch/9407485/
State New
Headers show

Comments

Patrik Jakobsson - Nov. 1, 2016, 2:43 p.m.
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>
---
 drivers/gpu/drm/gma500/psb_drv.c | 3 +++
 1 file changed, 3 insertions(+)
Sean Paul - Nov. 2, 2016, 3:45 p.m.
On Tue, Nov 1, 2016 at 10:43 AM, Patrik Jakobsson
<patrik.r.jakobsson@gmail.com> wrote:
> 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.
>


Applied to drm-misc, thanks

Sean

> Cc: stable@vger.kernel.org
> Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
> ---
>  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 50eb944f..8f3ca52 100644
> --- a/drivers/gpu/drm/gma500/psb_drv.c
> +++ b/drivers/gpu/drm/gma500/psb_drv.c
> @@ -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,
> --
> 2.10.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

Patch

diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
index 50eb944f..8f3ca52 100644
--- a/drivers/gpu/drm/gma500/psb_drv.c
+++ b/drivers/gpu/drm/gma500/psb_drv.c
@@ -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,