Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 804d74ab authored by Keith Packard's avatar Keith Packard Committed by Dave Airlie
Browse files

drm: use drm_compat_ioctl for 32-bit apps



Most of the DRM drivers appear to be missing the .compat_ioctl file
operation entry necessary for 32-bit application compatibility.

This patch  uses drm_compat_ioctl for all drivers which don't have
their own, and which are using drm_ioctl for .unlocked_ioctl.

This leaves drivers/gpu/drm/psb/psb_drv.c unchanged; it has a custom
.unlocked_ioctl and will presumably need a custom .compat_ioctl as
well.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
Signed-off-by: default avatarDave Airlie <airlied@gmail.com>
parent 0273de08
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -193,6 +193,9 @@ static const struct file_operations ast_fops = {
	.mmap = ast_mmap,
	.poll = drm_poll,
	.fasync = drm_fasync,
#ifdef CONFIG_COMPAT
	.compat_ioctl = drm_compat_ioctl,
#endif
	.read = drm_read,
};

+3 −0
Original line number Diff line number Diff line
@@ -74,6 +74,9 @@ static const struct file_operations cirrus_driver_fops = {
	.unlocked_ioctl = drm_ioctl,
	.mmap = cirrus_mmap,
	.poll = drm_poll,
#ifdef CONFIG_COMPAT
	.compat_ioctl = drm_compat_ioctl,
#endif
	.fasync = drm_fasync,
};
static struct drm_driver driver = {
+3 −0
Original line number Diff line number Diff line
@@ -241,6 +241,9 @@ static const struct file_operations exynos_drm_driver_fops = {
	.poll		= drm_poll,
	.read		= drm_read,
	.unlocked_ioctl	= drm_ioctl,
#ifdef CONFIG_COMPAT
	.compat_ioctl = drm_compat_ioctl,
#endif
	.release	= drm_release,
};

+3 −0
Original line number Diff line number Diff line
@@ -115,6 +115,9 @@ static const struct file_operations i810_buffer_fops = {
	.unlocked_ioctl = drm_ioctl,
	.mmap = i810_mmap_buffers,
	.fasync = drm_fasync,
#ifdef CONFIG_COMPAT
	.compat_ioctl = drm_compat_ioctl,
#endif
	.llseek = noop_llseek,
};

+3 −0
Original line number Diff line number Diff line
@@ -51,6 +51,9 @@ static const struct file_operations i810_driver_fops = {
	.mmap = drm_mmap,
	.poll = drm_poll,
	.fasync = drm_fasync,
#ifdef CONFIG_COMPAT
	.compat_ioctl = drm_compat_ioctl,
#endif
	.llseek = noop_llseek,
};

Loading