Forráskód Böngészése

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>
Greg Kroah-Hartman 12 éve
szülő
commit
6853152689
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      include/linux/sysfs.h

+ 1 - 1
include/linux/sysfs.h

@@ -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