diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-20 16:48:54 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-20 16:48:54 -0700 |
commit | 6853152689d47b4a1eb9f38a25a18f3f8b7a60de (patch) | |
tree | 630ed2b1905242b5cad20beaf2d6c9363f7fc3db | |
parent | 515ad4d678128affa7788a685d79664463f3b1e3 (diff) | |
download | op-kernel-dev-6853152689d47b4a1eb9f38a25a18f3f8b7a60de.zip op-kernel-dev-6853152689d47b4a1eb9f38a25a18f3f8b7a60de.tar.gz |
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>
-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 9e8a9b5..0f04958 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 |