]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/md/dm-verity-target.c
dm: constify argument arrays
authorEric Biggers <ebiggers@google.com>
Thu, 22 Jun 2017 18:32:45 +0000 (11:32 -0700)
committerMike Snitzer <snitzer@redhat.com>
Mon, 28 Aug 2017 15:47:18 +0000 (11:47 -0400)
commit5916a22b83041b07d63191fe06206ae0fff6ec7a
treec1d154dcb136fe8e82e57e40f667557fc276c762
parent3f2e539359bd0e709eb35127dc04df6bf8c3e8de
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>
drivers/md/dm-cache-target.c
drivers/md/dm-crypt.c
drivers/md/dm-flakey.c
drivers/md/dm-integrity.c
drivers/md/dm-mpath.c
drivers/md/dm-switch.c
drivers/md/dm-table.c
drivers/md/dm-thin.c
drivers/md/dm-verity-target.c
include/linux/device-mapper.h