Skip to contentSkip to conversation

udmabuf: Add missing compact_ioctl

PATCH New Kristian H. Kristensen 1 participant 1 message Sep 4, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udmabuf: Add missing compact_ioctl

Make sure we can use this on mixed systems.

---
 drivers/dma-buf/udmabuf.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/dma-buf/udmabuf.c +3 -0
index 9635897458a0..6f4ff6ede050 100644
@@ -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 = {
Signature · 6 lines
2.28.0.402.g5ffc5be6b7-goog

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel