aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNayna Jain <nayna@linux.ibm.com>2019-10-01 19:37:18 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2019-11-13 00:33:21 +1100
commit39a963b457b5c6cbbdc70441c9d496e39d151582 (patch)
tree7ef933ac357c90eb37330e3446f9f9ed60c331d5
parentMerge branch 'topic/ima' into topic/secureboot (diff)
downloadlinux-39a963b457b5c6cbbdc70441c9d496e39d151582.tar.gz
linux-39a963b457b5c6cbbdc70441c9d496e39d151582.zip
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 <nayna@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/1569973038-2710-1-git-send-email-nayna@linux.ibm.com
-rw-r--r--include/linux/sysfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 5420817ed317..fa7ee503fb76 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -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, \
}