summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-ioctl.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-06-22 14:33:47 -0400
committerMike Snitzer <snitzer@redhat.com>2017-08-28 11:47:18 -0400
commitcf0dec6674c1e2a7ba326cfbbe7f05a70458afc9 (patch)
tree9222704c7f58fe4cdd8535c5192c5c2f76173917 /drivers/md/dm-ioctl.c
parent5916a22b83041b07d63191fe06206ae0fff6ec7a (diff)
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/dm-ioctl.c')
-rw-r--r--drivers/md/dm-ioctl.c2
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
1629 *---------------------------------------------------------------*/ 1629 *---------------------------------------------------------------*/
1630static ioctl_fn lookup_ioctl(unsigned int cmd, int *ioctl_flags) 1630static ioctl_fn lookup_ioctl(unsigned int cmd, int *ioctl_flags)
1631{ 1631{
1632 static struct { 1632 static const struct {
1633 int cmd; 1633 int cmd;
1634 int flags; 1634 int flags;
1635 ioctl_fn fn; 1635 ioctl_fn fn;