From: Kristian H. Kristensen Date: Thu, 3 Sep 2020 18:16:52 +0000 (+0000) Subject: udmabuf: Add missing compact_ioctl X-Git-Tag: io_uring-5.10-2020-10-20~48^2~3^2~223 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d4a197f4047e01d1e0b06e0390d513f253350c62;p=linux-block.git udmabuf: Add missing compact_ioctl Make sure we can use this on mixed systems. Signed-off-by: Kristian H. Kristensen Link: http://patchwork.freedesktop.org/patch/msgid/20200903181652.432067-1-hoegsberg@google.com Signed-off-by: Gerd Hoffmann --- 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 = {