Skip to content

Commit

Permalink
vfio/mdev: make create attribute static
Browse files Browse the repository at this point in the history
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: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  • Loading branch information
Ben Dooks (Codethink) authored and Alex Williamson committed Jan 9, 2020
1 parent 7a49de9 commit e10b4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vfio/mdev/mdev_sysfs.c
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ static ssize_t create_store(struct kobject *kobj, struct device *dev,
return count;
}

MDEV_TYPE_ATTR_WO(create);
static MDEV_TYPE_ATTR_WO(create);

static void mdev_type_release(struct kobject *kobj)
{

0 comments on commit e10b4f6

Please sign in to comment.