From: Eric Biggers Date: Thu, 22 Jun 2017 18:33:47 +0000 (-0700) Subject: dm ioctl: constify ioctl lookup table X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf0dec6674c1e2a7ba326cfbbe7f05a70458afc9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mike Snitzer --- 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;