summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOctavian Purdila <octavian.purdila@intel.com>2016-03-23 15:14:48 +0300
committerChristoph Hellwig <hch@lst.de>2016-03-25 21:10:03 +0300
commit96c22a3293512ba684e73a981196430f524689da (patch)
treee213c5ee47c625f9cff61e1426d81b89e428b3ed /include
parent1ae1602de028acaa42a0f6ff18d19756f8e825c6 (diff)
downloadlinux-96c22a3293512ba684e73a981196430f524689da.tar.xz
configfs: fix CONFIGFS_BIN_ATTR_[RW]O definitions
The type should be struct configfs_bin_attribute and not struct configfs_attribute. Signed-off-by: Octavian Purdila <octavian.purdila@intel.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/configfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/configfs.h b/include/linux/configfs.h
index 485fe5519448..d9d6a9d77489 100644
--- a/include/linux/configfs.h
+++ b/include/linux/configfs.h
@@ -188,7 +188,7 @@ static struct configfs_bin_attribute _pfx##attr_##_name = { \
}
#define CONFIGFS_BIN_ATTR_RO(_pfx, _name, _priv, _maxsz) \
-static struct configfs_attribute _pfx##attr_##_name = { \
+static struct configfs_bin_attribute _pfx##attr_##_name = { \
.cb_attr = { \
.ca_name = __stringify(_name), \
.ca_mode = S_IRUGO, \
@@ -200,7 +200,7 @@ static struct configfs_attribute _pfx##attr_##_name = { \
}
#define CONFIGFS_BIN_ATTR_WO(_pfx, _name, _priv, _maxsz) \
-static struct configfs_attribute _pfx##attr_##_name = { \
+static struct configfs_bin_attribute _pfx##attr_##_name = { \
.cb_attr = { \
.ca_name = __stringify(_name), \
.ca_mode = S_IWUSR, \