[RFC PATCH intel-gvt-linux] drm/i915/xengt: gvt_ctrl_kobj can be static
kbuild test robot
lkp at intel.com
Mon Nov 4 18:15:35 UTC 2019
Fixes: bc82c0e6982a ("drm/i915/xengt: xengt moudule initial files")
Signed-off-by: kbuild test robot <lkp at intel.com>
---
xengt.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/i915/gvt/xengt.c b/drivers/gpu/drm/i915/gvt/xengt.c
index 250027e04bb33..86699a6158708 100644
--- a/drivers/gpu/drm/i915/gvt/xengt.c
+++ b/drivers/gpu/drm/i915/gvt/xengt.c
@@ -56,11 +56,11 @@ MODULE_DESCRIPTION("XenGT mediated passthrough driver");
MODULE_LICENSE("GPL");
MODULE_VERSION("0.1");
-struct kobject *gvt_ctrl_kobj;
+static struct kobject *gvt_ctrl_kobj;
static struct kset *gvt_kset;
static DEFINE_MUTEX(gvt_sysfs_lock);
-struct xengt_struct xengt_priv;
+static struct xengt_struct xengt_priv;
const struct intel_gvt_ops *intel_gvt_ops;
static ssize_t kobj_attr_show(struct kobject *kobj, struct attribute *attr,
@@ -109,7 +109,7 @@ static struct attribute *xengt_vm_attrs[] = {
NULL, /* need to NULL terminate the list of attributes */
};
-const struct sysfs_ops xengt_kobj_sysfs_ops = {
+static const struct sysfs_ops xengt_kobj_sysfs_ops = {
.show = kobj_attr_show,
.store = kobj_attr_store,
};
@@ -271,7 +271,7 @@ static ssize_t xengt_sysfs_instance_manage(struct kobject *kobj,
return rc < 0 ? rc : count;
}
-int xengt_sysfs_init(struct intel_gvt *gvt)
+static int xengt_sysfs_init(struct intel_gvt *gvt)
{
int ret;
@@ -310,7 +310,7 @@ int xengt_sysfs_init(struct intel_gvt *gvt)
return ret;
}
-void xengt_sysfs_del(void)
+static void xengt_sysfs_del(void)
{
kobject_put(gvt_ctrl_kobj);
kset_unregister(gvt_kset);
More information about the intel-gvt-dev
mailing list