compat_ioctl: move drivers to compat_ptr_ioctl
authorArnd Bergmann <arnd@arndb.de>
Tue, 11 Sep 2018 15:23:00 +0000 (17:23 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:23:43 +0000 (17:23 +0200)
commit407e9ef72476e64937ebec44cc835e03a25fb408
treef39676cf265edd608c095532c554e9d58a177fe1
parent076ff658628678f73d2349a699c3431877c1a075
compat_ioctl: move drivers to compat_ptr_ioctl

Each of these drivers has a copy of the same trivial helper function to
convert the pointer argument and then call the native ioctl handler.

We now have a generic implementation of that, so use it.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Jiri Kosina <jkosina@suse.cz>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
16 files changed:
drivers/char/ppdev.c
drivers/char/tpm/tpm_vtpm_proxy.c
drivers/firewire/core-cdev.c
drivers/hid/usbhid/hiddev.c
drivers/hwtracing/stm/core.c
drivers/misc/mei/main.c
drivers/mtd/ubi/cdev.c
drivers/net/tap.c
drivers/staging/pi433/pi433_if.c
drivers/usb/core/devio.c
drivers/vfio/vfio.c
drivers/vhost/net.c
drivers/vhost/scsi.c
drivers/vhost/test.c
drivers/vhost/vsock.c
fs/fat/file.c