vfio-pci: Break up vfio_pci_core_ioctl() into one function per ioctl
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 31 Aug 2022 20:15:57 +0000 (17:15 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 1 Sep 2022 21:29:11 +0000 (15:29 -0600)
commit2ecf3b58ed7bc52ad58e02bb1596130fa6e6da53
tree44b4083e0d135618d59bd564a9a1bf696a227fe4
parent16f4cbd9e156193312db19a68fe37c09854f77a8
vfio-pci: Break up vfio_pci_core_ioctl() into one function per ioctl

500 lines is a bit long for a single function, move the bodies of each
ioctl into separate functions and leave behind a switch statement to
dispatch them. This patch just adds the function declarations and does not
fix the indenting. The next patch will restore the indenting.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/2-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