vfio/mdev: add static modifier to add_mdev_supported_type
authorPaolo Cretaro <paolocretaro@gmail.com>
Tue, 13 Nov 2018 08:45:43 +0000 (09:45 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 12 Dec 2018 19:59:48 +0000 (12:59 -0700)
Set add_mdev_supported_type as static since it is only used within
mdev_sysfs.c.  This fixes -Wmissing-prototypes gcc warning.

Signed-off-by: Paolo Cretaro <paolocretaro@gmail.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/mdev/mdev_sysfs.c

index 249472f..ce5dd21 100644 (file)
@@ -92,8 +92,8 @@ static struct kobj_type mdev_type_ktype = {
        .release = mdev_type_release,
 };
 
-struct mdev_type *add_mdev_supported_type(struct mdev_parent *parent,
-                                         struct attribute_group *group)
+static struct mdev_type *add_mdev_supported_type(struct mdev_parent *parent,
+                                                struct attribute_group *group)
 {
        struct mdev_type *type;
        int ret;