瀏覽代碼

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 年之前
父節點
當前提交
6853152689
共有 1 個文件被更改,包括 1 次插入1 次删除
  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