提交 cf0dec66 编写于 作者: E Eric Biggers 提交者: Mike Snitzer

dm ioctl: constify ioctl lookup table

Constify the lookup table for device-mapper ioctls so that it is placed
in .rodata.
Signed-off-by: NEric Biggers <ebiggers@google.com>
Signed-off-by: NMike Snitzer <snitzer@redhat.com>
上级 5916a22b
...@@ -1629,7 +1629,7 @@ static int target_message(struct file *filp, struct dm_ioctl *param, size_t para ...@@ -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 ioctl_fn lookup_ioctl(unsigned int cmd, int *ioctl_flags)
{ {
static struct { static const struct {
int cmd; int cmd;
int flags; int flags;
ioctl_fn fn; ioctl_fn fn;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册