vfio/mdev: make create attribute static
Subsystems (3)
PATCH 1/1 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?
---
Cc: Kirti Wankhede <[email protected]>
Cc: Alex Williamson <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- drivers/vfio/mdev/mdev_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/mdev/mdev_sysfs.c +1 -1
@@ -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) {
Signature · 1 line
2.24.0
Quoted 21 lines · On Wed, 18 Dec 2019 12:31:19 +0000 "Ben Dooks (Codethink)"…
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) <[email protected]>---
Cc: Kirti Wankhede <[email protected]>
Cc: Alex Williamson <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: [email protected]
Cc: [email protected]--- drivers/vfio/mdev/mdev_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/vfio/mdev/mdev_sysfs.c +0
-0
drivers/vfio/mdev/mdev_sysfs.c static ssize_t create_store(struct kobject *kobj, struct device *dev, · line 80
Quoted 8 lines
drivers/vfio/mdev/mdev_sysfs.c +1
-1@@ -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) {
Alex Williamson
AppliedQuoted 21 lines · On Wed, 18 Dec 2019 12:31:19 +0000 "Ben Dooks (Codethink)"…
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) <[email protected]>---
Cc: Kirti Wankhede <[email protected]>
Cc: Alex Williamson <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: [email protected]
Cc: [email protected]--- drivers/vfio/mdev/mdev_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/vfio/mdev/mdev_sysfs.c +0
-0
drivers/vfio/mdev/mdev_sysfs.c static ssize_t create_store(struct kobject *kobj, struct device *dev, · line 80
Quoted 8 lines
drivers/vfio/mdev/mdev_sysfs.c +1
-1@@ -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) {
Applied to vfio next branch for v5.6 with Connie's R-b. Thanks,
Alex