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>
This commit is contained in:
parent
515ad4d678
commit
6853152689
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue