]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sysfs.h: fix __BIN_ATTR_RW()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 23:48:54 +0000 (16:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 23:48:54 +0000 (16:48 -0700)
__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>
include/linux/sysfs.h

index 9e8a9b555ad6ac31eb37a2fe83416399be95c826..0f04958623d70bca687990e096916d97c5fce8ef 100644 (file)
@@ -153,7 +153,7 @@ struct bin_attribute {
 
 #define __BIN_ATTR_RW(_name, _size) __BIN_ATTR(_name,                  \
                                   (S_IWUSR | S_IRUGO), _name##_read,   \
-                                  _name##_write)
+                                  _name##_write, _size)
 
 #define __BIN_ATTR_NULL __ATTR_NULL