diff options
author | Paolo Cretaro <paolocretaro@gmail.com> | 2018-11-13 03:45:43 -0500 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2018-12-12 14:59:48 -0500 |
commit | 9422f5871d5d9ad9e168e1329a43cf9169b04712 (patch) | |
tree | fabb0e64ed7868ac3ecd57e25d6c9d605b05d0bf /drivers/vfio | |
parent | e309df5b0c9e67cc929eedd3e32f4907fa49543e (diff) |
vfio/mdev: add static modifier to add_mdev_supported_type
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>
Diffstat (limited to 'drivers/vfio')
-rw-r--r-- | drivers/vfio/mdev/mdev_sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vfio/mdev/mdev_sysfs.c b/drivers/vfio/mdev/mdev_sysfs.c index 249472f05509..ce5dd219f2c8 100644 --- a/drivers/vfio/mdev/mdev_sysfs.c +++ b/drivers/vfio/mdev/mdev_sysfs.c | |||
@@ -92,8 +92,8 @@ static struct kobj_type mdev_type_ktype = { | |||
92 | .release = mdev_type_release, | 92 | .release = mdev_type_release, |
93 | }; | 93 | }; |
94 | 94 | ||
95 | struct mdev_type *add_mdev_supported_type(struct mdev_parent *parent, | 95 | static struct mdev_type *add_mdev_supported_type(struct mdev_parent *parent, |
96 | struct attribute_group *group) | 96 | struct attribute_group *group) |
97 | { | 97 | { |
98 | struct mdev_type *type; | 98 | struct mdev_type *type; |
99 | int ret; | 99 | int ret; |