CHROMIUM: virtwl: add compat_ioctl entry for each struct file_operations TEST=use wayland 32-bit app in 64-bit kernel BUG=chromium:801232 Change-Id: I95813689763ffb5fad1c43ccc94acd0e00faf185 Signed-off-by: Zach Reizner <zachr@google.com> Reviewed-on: https://chromium-review.googlesource.com/861951 Commit-Ready: Zach Reizner <zachr@chromium.org> Tested-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> (cherry picked from commit 8da564a49164494b21d9e55397f5c4e375021def) Reviewed-on: https://chromium-review.googlesource.com/864723
diff --git a/drivers/virtio/virtio_wl.c b/drivers/virtio/virtio_wl.c index da84ab3..e7d0d3d 100644 --- a/drivers/virtio/virtio_wl.c +++ b/drivers/virtio/virtio_wl.c
@@ -1059,6 +1059,7 @@ static int virtwl_release(struct inode *inodep, struct file *filp) static const struct file_operations virtwl_fops = { .open = virtwl_open, .unlocked_ioctl = virtwl_ioctl, + .compat_ioctl = virtwl_ioctl, .release = virtwl_release, }; @@ -1066,6 +1067,7 @@ static const struct file_operations virtwl_vfd_fops = { .mmap = virtwl_vfd_mmap, .poll = virtwl_vfd_poll, .unlocked_ioctl = virtwl_ioctl, + .compat_ioctl = virtwl_ioctl, .release = virtwl_vfd_release, };