mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
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>
This commit is contained in:
parent
5916a22b83
commit
cf0dec6674
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user