aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-20 19:48:54 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-20 19:48:54 -0400
commit6853152689d47b4a1eb9f38a25a18f3f8b7a60de (patch)
tree630ed2b1905242b5cad20beaf2d6c9363f7fc3db /include/linux/sysfs.h
parent515ad4d678128affa7788a685d79664463f3b1e3 (diff)
sysfs.h: fix __BIN_ATTR_RW()
__BIN_ATTR_RW() wasn't passing in the _size field. As it would break the build if this macro was ever used, it's obvious no one had ever tried to use it before. Fix it so that it can be used. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 9e8a9b555ad6..0f04958623d7 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -153,7 +153,7 @@ struct bin_attribute {
153 153
154#define __BIN_ATTR_RW(_name, _size) __BIN_ATTR(_name, \ 154#define __BIN_ATTR_RW(_name, _size) __BIN_ATTR(_name, \
155 (S_IWUSR | S_IRUGO), _name##_read, \ 155 (S_IWUSR | S_IRUGO), _name##_read, \
156 _name##_write) 156 _name##_write, _size)
157 157
158#define __BIN_ATTR_NULL __ATTR_NULL 158#define __BIN_ATTR_NULL __ATTR_NULL
159 159