vfio-pci: Replace 'void __user *' with proper types in the ioctl functions
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 31 Aug 2022 20:15:59 +0000 (17:15 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 1 Sep 2022 21:29:11 +0000 (15:29 -0600)
commit663eab456e072bbcd02c2516d54b53f7ecd57dd3
tree3c574706413edd2d5201883372baf2fa27e485be
parentea3fc04d4fad2d31adb8a25115d4bd53b214bfc4
vfio-pci: Replace 'void __user *' with proper types in the ioctl functions

This makes the code clearer and replaces a few places trying to access a
flex array with an actual flex array.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/4-v2-0f9e632d54fb+d6-vfio_ioctl_split_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_core.c