[PATCH] FROMLIST: udmabuf: Add missing compact_ioctl
Kristian H. Kristensen
hoegsberg at google.com
Thu Sep 3 17:24:54 UTC 2020
Make sure we can use this on mixed systems.
Signed-off-by: Kristian H. Kristensen <hoegsberg at google.com>
(am from TBD)
BUG=b:167236452
TEST=dmabuf_test from drm-tests passes on mixed systems
Change-Id: I4e9f26aedf82a36b9888bb36d41ccd3b7a27365e
---
drivers/dma-buf/udmabuf.c | 3 +++
1 file changed, 3 insertions(+)
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 = {
--
2.28.0.402.g5ffc5be6b7-goog
More information about the dri-devel
mailing list