Commit e10b4f6c authored by Ben Dooks (Codethink)'s avatar Ben Dooks (Codethink) Committed by Alex Williamson

vfio/mdev: make create attribute static

The create attribute is not exported, so make it
static to avoid the following sparse warning:

drivers/vfio/mdev/mdev_sysfs.c:77:1: warning: symbol 'mdev_type_attr_create' was not declared. Should it be static?
Signed-off-by: default avatarBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 7a49de99
...@@ -74,7 +74,7 @@ static ssize_t create_store(struct kobject *kobj, struct device *dev, ...@@ -74,7 +74,7 @@ static ssize_t create_store(struct kobject *kobj, struct device *dev,
return count; return count;
} }
MDEV_TYPE_ATTR_WO(create); static MDEV_TYPE_ATTR_WO(create);
static void mdev_type_release(struct kobject *kobj) static void mdev_type_release(struct kobject *kobj)
{ {
......
Markdown is supported
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