diff options
author | David Sterba <dsterba@suse.com> | 2015-11-19 13:42:31 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-07 17:01:15 +0300 |
commit | 4d4ab6d6bc05ba65169de9a5391e6ccbe09d8719 (patch) | |
tree | b4402e0388ee13df3bbd6d7f78108436e0dbea6b /fs/btrfs/ioctl.c | |
parent | 20e5506baf3fd651e245bc970d8c11a734ee1b8a (diff) | |
download | linux-4d4ab6d6bc05ba65169de9a5391e6ccbe09d8719.tar.xz |
btrfs: constify static arrays
There are a few statically initialized arrays that can be made const.
The remaining (like file_system_type, sysfs attributes or prop handlers)
do not allow that due to type mismatch when passed to the APIs or
because the structures are modified through other members.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index da94138eb85e..fd429d7f40ab 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -5286,7 +5286,7 @@ out_unlock: static int btrfs_ioctl_get_supported_features(struct file *file, void __user *arg) { - static struct btrfs_ioctl_feature_flags features[3] = { + static const struct btrfs_ioctl_feature_flags features[3] = { INIT_FEATURE_FLAGS(SUPP), INIT_FEATURE_FLAGS(SAFE_SET), INIT_FEATURE_FLAGS(SAFE_CLEAR) |