Commit 2e33ffb6 authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman

Staging: lustre: obdclass: lprocfs_status: Declare local functions as static

Declare lustre_attr_show and lustre_attr_store as static
since they are used only in this particular file. Also remove them from
corresponding header files.
Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5913ef5e
...@@ -713,11 +713,6 @@ static struct lustre_attr lustre_attr_##name = __ATTR(name, mode, show, store) ...@@ -713,11 +713,6 @@ static struct lustre_attr lustre_attr_##name = __ATTR(name, mode, show, store)
#define LUSTRE_RO_ATTR(name) LUSTRE_ATTR(name, 0444, name##_show, NULL) #define LUSTRE_RO_ATTR(name) LUSTRE_ATTR(name, 0444, name##_show, NULL)
#define LUSTRE_RW_ATTR(name) LUSTRE_ATTR(name, 0644, name##_show, name##_store) #define LUSTRE_RW_ATTR(name) LUSTRE_ATTR(name, 0644, name##_show, name##_store)
ssize_t lustre_attr_show(struct kobject *kobj, struct attribute *attr,
char *buf);
ssize_t lustre_attr_store(struct kobject *kobj, struct attribute *attr,
const char *buf, size_t len);
extern const struct sysfs_ops lustre_sysfs_ops; extern const struct sysfs_ops lustre_sysfs_ops;
/* all quota proc functions */ /* all quota proc functions */
......
...@@ -1467,23 +1467,21 @@ void lprocfs_oh_clear(struct obd_histogram *oh) ...@@ -1467,23 +1467,21 @@ void lprocfs_oh_clear(struct obd_histogram *oh)
} }
EXPORT_SYMBOL(lprocfs_oh_clear); EXPORT_SYMBOL(lprocfs_oh_clear);
ssize_t lustre_attr_show(struct kobject *kobj, static ssize_t lustre_attr_show(struct kobject *kobj,
struct attribute *attr, char *buf) struct attribute *attr, char *buf)
{ {
struct lustre_attr *a = container_of(attr, struct lustre_attr, attr); struct lustre_attr *a = container_of(attr, struct lustre_attr, attr);
return a->show ? a->show(kobj, attr, buf) : 0; return a->show ? a->show(kobj, attr, buf) : 0;
} }
EXPORT_SYMBOL_GPL(lustre_attr_show);
ssize_t lustre_attr_store(struct kobject *kobj, struct attribute *attr, static ssize_t lustre_attr_store(struct kobject *kobj, struct attribute *attr,
const char *buf, size_t len) const char *buf, size_t len)
{ {
struct lustre_attr *a = container_of(attr, struct lustre_attr, attr); struct lustre_attr *a = container_of(attr, struct lustre_attr, attr);
return a->store ? a->store(kobj, attr, buf, len) : len; return a->store ? a->store(kobj, attr, buf, len) : len;
} }
EXPORT_SYMBOL_GPL(lustre_attr_store);
const struct sysfs_ops lustre_sysfs_ops = { const struct sysfs_ops lustre_sysfs_ops = {
.show = lustre_attr_show, .show = lustre_attr_show,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment