diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-14 19:05:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-16 13:57:36 -0400 |
commit | b9b3259746d77f4fcb786e2a43c25bcc40773755 (patch) | |
tree | 220c5b779b174f5464ab64e68a85c1889a874b22 /mm/backing-dev.c | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 (diff) |
sysfs.h: add __ATTR_RW() macro
A number of parts of the kernel created their own version of this, might
as well have the sysfs core provide it instead.
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/backing-dev.c')
-rw-r--r-- | mm/backing-dev.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index d014ee5fcbbd..e04454cdb33f 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c | |||
@@ -232,8 +232,6 @@ static ssize_t stable_pages_required_show(struct device *dev, | |||
232 | bdi_cap_stable_pages_required(bdi) ? 1 : 0); | 232 | bdi_cap_stable_pages_required(bdi) ? 1 : 0); |
233 | } | 233 | } |
234 | 234 | ||
235 | #define __ATTR_RW(attr) __ATTR(attr, 0644, attr##_show, attr##_store) | ||
236 | |||
237 | static struct device_attribute bdi_dev_attrs[] = { | 235 | static struct device_attribute bdi_dev_attrs[] = { |
238 | __ATTR_RW(read_ahead_kb), | 236 | __ATTR_RW(read_ahead_kb), |
239 | __ATTR_RW(min_ratio), | 237 | __ATTR_RW(min_ratio), |