summaryrefslogtreecommitdiff
path: root/drivers/md/dm-verity-target.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-06-22 21:32:45 +0300
committerMike Snitzer <snitzer@redhat.com>2017-08-28 18:47:18 +0300
commit5916a22b83041b07d63191fe06206ae0fff6ec7a (patch)
treec1d154dcb136fe8e82e57e40f667557fc276c762 /drivers/md/dm-verity-target.c
parent3f2e539359bd0e709eb35127dc04df6bf8c3e8de (diff)
downloadlinux-5916a22b83041b07d63191fe06206ae0fff6ec7a.tar.xz
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-verity-target.c')
-rw-r--r--drivers/md/dm-verity-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-verity-target.c b/drivers/md/dm-verity-target.c
index b46705ebf01f..79f18d4d7f02 100644
--- a/drivers/md/dm-verity-target.c
+++ b/drivers/md/dm-verity-target.c
@@ -839,7 +839,7 @@ static int verity_parse_opt_args(struct dm_arg_set *as, struct dm_verity *v)
struct dm_target *ti = v->ti;
const char *arg_name;
- static struct dm_arg _args[] = {
+ static const struct dm_arg _args[] = {
{0, DM_VERITY_OPTS_MAX, "Invalid number of feature args"},
};