diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-21 03:48:54 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-21 03:48:54 +0400 |
commit | 6853152689d47b4a1eb9f38a25a18f3f8b7a60de (patch) | |
tree | 630ed2b1905242b5cad20beaf2d6c9363f7fc3db /include/linux/sysfs.h | |
parent | 515ad4d678128affa7788a685d79664463f3b1e3 (diff) | |
download | linux-6853152689d47b4a1eb9f38a25a18f3f8b7a60de.tar.xz |
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.h | 2 |
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 { #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 |