From a85024917f5ffbe516cd9563f17d8cbaa41cc615 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 25 Oct 2009 09:31:26 +0000 Subject: [PATCH] Fixed a sparse warning. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1268 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index bd6d4af01..f8b68e595 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -377,7 +377,7 @@ static ssize_t vdisk_mgmt_show(struct kobject *kobj, static ssize_t vdisk_mgmt_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count); -struct kobj_attribute vdisk_mgmt_attr = +static struct kobj_attribute vdisk_mgmt_attr = __ATTR(mgmt, S_IRUGO | S_IWUSR, vdisk_mgmt_show, vdisk_mgmt_store); static const struct attribute *vdisk_attrs[] = {