diff options
Diffstat (limited to 'fs/btrfs/sysfs.h')
-rw-r--r-- | fs/btrfs/sysfs.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h index 531b11ee9124..f7dd298b3cf6 100644 --- a/fs/btrfs/sysfs.h +++ b/fs/btrfs/sysfs.h | |||
@@ -20,12 +20,13 @@ enum btrfs_feature_set { | |||
20 | .store = _store, \ | 20 | .store = _store, \ |
21 | } | 21 | } |
22 | 22 | ||
23 | #define BTRFS_ATTR_RW(_name, _mode, _show, _store) \ | 23 | #define BTRFS_ATTR_RW(_name, _show, _store) \ |
24 | static struct kobj_attribute btrfs_attr_##_name = \ | 24 | static struct kobj_attribute btrfs_attr_##_name = \ |
25 | __INIT_KOBJ_ATTR(_name, _mode, _show, _store) | 25 | __INIT_KOBJ_ATTR(_name, 0644, _show, _store) |
26 | 26 | ||
27 | #define BTRFS_ATTR(_name, _show) \ | 27 | #define BTRFS_ATTR(_name, _show) \ |
28 | BTRFS_ATTR_RW(_name, 0444, _show, NULL) | 28 | static struct kobj_attribute btrfs_attr_##_name = \ |
29 | __INIT_KOBJ_ATTR(_name, 0444, _show, NULL) | ||
29 | 30 | ||
30 | #define BTRFS_ATTR_PTR(_name) (&btrfs_attr_##_name.attr) | 31 | #define BTRFS_ATTR_PTR(_name) (&btrfs_attr_##_name.attr) |
31 | 32 | ||