diff options
author | 2017-06-22 11:33:47 -0700 | |
---|---|---|
committer | 2017-08-28 11:47:18 -0400 | |
commit | cf0dec6674c1e2a7ba326cfbbe7f05a70458afc9 (patch) | |
tree | 9222704c7f58fe4cdd8535c5192c5c2f76173917 /drivers/md | |
parent | dm: constify argument arrays (diff) | |
download | linux-cf0dec6674c1e2a7ba326cfbbe7f05a70458afc9.tar.gz linux-cf0dec6674c1e2a7ba326cfbbe7f05a70458afc9.tar.bz2 linux-cf0dec6674c1e2a7ba326cfbbe7f05a70458afc9.zip |
dm ioctl: constify ioctl lookup table
Constify the lookup table for device-mapper ioctls so that it is placed
in .rodata.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index e06f0ef7d2ec..8756a6850431 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c @@ -1629,7 +1629,7 @@ static int target_message(struct file *filp, struct dm_ioctl *param, size_t para *---------------------------------------------------------------*/ static ioctl_fn lookup_ioctl(unsigned int cmd, int *ioctl_flags) { - static struct { + static const struct { int cmd; int flags; ioctl_fn fn; |