Skip to content
Commit 46ed90f1 authored by Xiongwei Song's avatar Xiongwei Song Committed by Alex Williamson
Browse files

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: default avatarXiongwei Song <sxwjean@gmail.com>
Reviewed-by: default avatarQuan Xu <quan.xu0@gmail.com>
Reviewed-by: default avatarLiu, Yi L <yi.l.liu@intel.com>
Reviewed-by: default avatarKirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent a32295c6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment