summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf/udmabuf.c
diff options
context:
space:
mode:
authorKristian H. Kristensen <hoegsberg@google.com>2020-09-03 20:16:52 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-09-07 06:23:20 +0200
commitd4a197f4047e01d1e0b06e0390d513f253350c62 (patch)
treea72954bdf871ca6ad72d05e876704397c5c1642f /drivers/dma-buf/udmabuf.c
parentdrm/panel: s6e63m0: Fix up DRM_DEV* regression (diff)
downloadlinux-d4a197f4047e01d1e0b06e0390d513f253350c62.tar.xz
linux-d4a197f4047e01d1e0b06e0390d513f253350c62.zip
udmabuf: Add missing compact_ioctl
Make sure we can use this on mixed systems. Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com> Link: http://patchwork.freedesktop.org/patch/msgid/20200903181652.432067-1-hoegsberg@google.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/dma-buf/udmabuf.c')
-rw-r--r--drivers/dma-buf/udmabuf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c
index acb26c627d27..5ee1e9399710 100644
--- a/drivers/dma-buf/udmabuf.c
+++ b/drivers/dma-buf/udmabuf.c
@@ -308,6 +308,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 = {