sysfs: Fixes __BIN_ATTR_WO() macro
Subsystems (3)
PATCH 1/1 sysfs: Fixes __BIN_ATTR_WO() macro
This patch fixes the size and write parameter for the macro __BIN_ATTR_WO().
Fixes 7f905761e15a8 ("sysfs: add BIN_ATTR_WO() macro")
Signed-off-by Nayna Jain <[email protected]>
--- include/linux/sysfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/sysfs.h +2 -2
@@ -196,9 +196,9 @@ struct bin_attribute { .size = _size, \ } -#define __BIN_ATTR_WO (_name) { \ +#define __BIN_ATTR_WO (_name, _size) { \ .attr = { .name = __stringify(_name), .mode = 0200 }, \ - .store = _name##_store, \ + .write = _name##_write, \ .size = _size, \ }
Signature · 1 line
2.20.1
Michael Ellerman
AppliedQuoted 5 lines · Nayna Jain
This patch fixes the size and write parameter for the macro
__BIN_ATTR_WO().Fixes 7f905761e15a8 ("sysfs: add BIN_ATTR_WO() macro")Signed-off-by Nayna Jain <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/39a963b457b5c6cbbdc70441c9d496e39d151582
cheers
Greg Kroah-Hartman
maintainerQuoted 10 lines · Michael Ellerman
Quoted 5 lines · Nayna Jain
This patch fixes the size and write parameter for the macro
__BIN_ATTR_WO().Fixes 7f905761e15a8 ("sysfs: add BIN_ATTR_WO() macro")Signed-off-by Nayna Jain <[email protected]>Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/39a963b457b5c6cbbdc70441c9d496e39d151582
Why? This is already in 5.4-rc5, why do you need/want it again?
thanks,
greg k-h