From: Sage Weil Date: Mon, 9 Mar 2009 21:56:40 +0000 (-0700) Subject: kclient: sysfs whitespace cleanup X-Git-Tag: v0.7~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e2afd171f7fde523e9ac30106c8eb184d7a9979c;p=ceph.git kclient: sysfs whitespace cleanup Wrap at 80 columns... --- diff --git a/src/kernel/sysfs.c b/src/kernel/sysfs.c index 37dda51a8af..15e6d1250f7 100644 --- a/src/kernel/sysfs.c +++ b/src/kernel/sysfs.c @@ -11,38 +11,38 @@ static struct kobject ceph_kobj; */ #define DEF_ATTR_OP(name) \ -static ssize_t name##_attr_show(struct kobject *kobj, struct attribute *attr, \ - char *buf) \ -{ \ - struct name##_attr *a = \ - container_of(attr, struct name##_attr, attr); \ - struct name *c = container_of(kobj, struct name, kobj); \ - ssize_t ret = -EIO; \ - \ - if (a->show) \ - ret = a->show(c, a, buf); \ - return ret; \ -} \ - \ -static ssize_t name##_attr_store(struct kobject *kobj, struct attribute *attr, \ - const char *buf, size_t count) \ -{ \ - struct name##_attr *a = container_of(attr, struct name##_attr, attr); \ - struct name *c = container_of(kobj, struct name, kobj); \ - ssize_t ret = -EIO; \ - \ - if (a->store) \ - ret = a->store(c, a, buf, count); \ - return ret; \ -} \ - \ -static struct sysfs_ops name##_sysfs_ops = { \ - .show = name##_attr_show, \ - .store = name##_attr_store, \ -}; \ - \ -static struct kobj_type name##_ops = { \ - .sysfs_ops = &name##_sysfs_ops, \ +static ssize_t name##_attr_show(struct kobject *kobj, struct attribute *attr,\ + char *buf) \ +{ \ + struct name##_attr *a = \ + container_of(attr, struct name##_attr, attr); \ + struct name *c = container_of(kobj, struct name, kobj); \ + ssize_t ret = -EIO; \ + \ + if (a->show) \ + ret = a->show(c, a, buf); \ + return ret; \ +} \ + \ +static ssize_t name##_attr_store(struct kobject *kobj, struct attribute *attr, \ + const char *buf, size_t count) \ +{ \ + struct name##_attr *a = container_of(attr, struct name##_attr, attr); \ + struct name *c = container_of(kobj, struct name, kobj); \ + ssize_t ret = -EIO; \ + \ + if (a->store) \ + ret = a->store(c, a, buf, count); \ + return ret; \ +} \ + \ +static struct sysfs_ops name##_sysfs_ops = { \ + .show = name##_attr_show, \ + .store = name##_attr_store, \ +}; \ + \ +static struct kobj_type name##_ops = { \ + .sysfs_ops = &name##_sysfs_ops, \ }; #define ADD_ENTITY_ATTR(ent, a, n, m, sh, st) \