]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: mdev: make a couple of functions and structure vfio_mdev_driver static
authorXiongwei Song <sxwjean@gmail.com>
Thu, 21 Dec 2017 23:12:26 +0000 (07:12 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 9 Jan 2018 19:13:08 +0000 (12:13 -0700)
commit399187ef97a9ed2eec04c8b68db66845a9e6fd8d
tree80181a9ee7923d4f687f67239868a6c73222227c
parent0715a1ed9c35a5acbceb70f92a82c56b03caa721
vfio: mdev: make a couple of functions and structure vfio_mdev_driver static

The functions vfio_mdev_probe, vfio_mdev_remove and the structure
vfio_mdev_driver are only used in this file, so make them static.

Clean up sparse warnings:
drivers/vfio/mdev/vfio_mdev.c:114:5: warning: no previous prototype
for 'vfio_mdev_probe' [-Wmissing-prototypes]
drivers/vfio/mdev/vfio_mdev.c:121:6: warning: no previous prototype
for 'vfio_mdev_remove' [-Wmissing-prototypes]

Signed-off-by: Xiongwei Song <sxwjean@gmail.com>
Reviewed-by: Quan Xu <quan.xu0@gmail.com>
Reviewed-by: Liu, Yi L <yi.l.liu@intel.com>
Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/mdev/vfio_mdev.c