summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2014-01-15 10:45:17 +0100
committerChanho Park <chanho61.park@samsung.com>2014-08-08 14:37:39 +0900
commitefdf391bc0ac281d65d9a79072b3606f160c5ab5 (patch)
tree81fb500702e22d343835937d9690a8ea9fe17a7d /mm
parent5db23b27de1bc9db40de5294db0b6ddc0929b8d3 (diff)
downloadlinux-3.10-efdf391bc0ac281d65d9a79072b3606f160c5ab5.tar.gz
linux-3.10-efdf391bc0ac281d65d9a79072b3606f160c5ab5.tar.bz2
linux-3.10-efdf391bc0ac281d65d9a79072b3606f160c5ab5.zip
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> [mainline backport] Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Diffstat (limited to 'mm')
-rw-r--r--mm/backing-dev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c
index eea1a9dfac3..2e53312b890 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,
bdi_cap_stable_pages_required(bdi) ? 1 : 0);
}
-#define __ATTR_RW(attr) __ATTR(attr, 0644, attr##_show, attr##_store)
-
static struct device_attribute bdi_dev_attrs[] = {
__ATTR_RW(read_ahead_kb),
__ATTR_RW(min_ratio),