diff mbox series

udmabuf: Add missing compact_ioctl

Message ID 20200903181652.432067-1-hoegsberg@google.com (mailing list archive)
State New, archived
Headers show
Series udmabuf: Add missing compact_ioctl | expand

Commit Message

Kristian H. Kristensen Sept. 3, 2020, 6:16 p.m. UTC
Make sure we can use this on mixed systems.

Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
---
 drivers/dma-buf/udmabuf.c | 3 +++
 1 file changed, 3 insertions(+)

Sorry Gerd for all the spam. Once I finally got git send-email
working, I ended up sending a version with all ChromeOS decorations,
of course.  Here's a normal upstream version.

Email based workflow - the barrier is real.

Kristian

Comments

Gerd Hoffmann Sept. 7, 2020, 5:31 a.m. UTC | #1
Hi,

> +#ifdef CONFIG_COMPAT
> +	.compat_ioctl   = udmabuf_ioctl,
> +#endif

Pushed to drm-misc-next.

thanks,
  Gerd
diff mbox series

Patch

diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index 9635897458a0..6f4ff6ede050 100644
--- a/drivers/dma-buf/udmabuf.c
+++ b/drivers/dma-buf/udmabuf.c
@@ -270,6 +270,9 @@  static long udmabuf_ioctl(struct file *filp, unsigned int ioctl,
 static const struct file_operations udmabuf_fops = {
 	.owner		= THIS_MODULE,
 	.unlocked_ioctl = udmabuf_ioctl,
+#ifdef CONFIG_COMPAT
+	.compat_ioctl   = udmabuf_ioctl,
+#endif
 };
 
 static struct miscdevice udmabuf_misc = {