diff options
author | Eric Biggers <ebiggers@google.com> | 2017-06-22 20:32:45 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-08-28 17:47:18 +0200 |
commit | 5916a22b83041b07d63191fe06206ae0fff6ec7a (patch) | |
tree | c1d154dcb136fe8e82e57e40f667557fc276c762 /drivers/md/dm-thin.c | |
parent | dm integrity: count and display checksum failures (diff) | |
download | linux-5916a22b83041b07d63191fe06206ae0fff6ec7a.tar.xz linux-5916a22b83041b07d63191fe06206ae0fff6ec7a.zip |
dm: constify argument arrays
The arrays of 'struct dm_arg' are never modified by the device-mapper
core, so constify them so that they are placed in .rodata.
(Exception: the args array in dm-raid cannot be constified because it is
allocated on the stack and modified.)
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r-- | drivers/md/dm-thin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 9dec2f8cc739..9736621c2963 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -3041,7 +3041,7 @@ static int parse_pool_features(struct dm_arg_set *as, struct pool_features *pf, unsigned argc; const char *arg_name; - static struct dm_arg _args[] = { + static const struct dm_arg _args[] = { {0, 4, "Invalid number of pool feature arguments"}, }; |