From efdf391bc0ac281d65d9a79072b3606f160c5ab5 Mon Sep 17 00:00:00 2001 From: Andrzej Pietrasiewicz Date: Wed, 15 Jan 2014 10:45:17 +0100 Subject: 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 Tested-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman [mainline backport] Signed-off-by: Andrzej Pietrasiewicz --- mm/backing-dev.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'mm') 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), -- cgit v1.2.3