Skip to content

Commit b52c3de

Browse files
Mikulas PatockaMike Snitzer
authored andcommitted
dm ioctl: fix a couple ioctl codes
Change the ioctl codes from DM_DEV_ARM_POLL to DM_DEV_ARM_POLL_CMD and from DM_GET_TARGET_VERSION to DM_GET_TARGET_VERSION_CMD. Note that the "cmd" field of "struct _ioctls" is never used, thus this commit doesn't fix any bug, it just makes the code consistent. Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent d043f9a commit b52c3de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/md/dm-ioctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,8 +1788,8 @@ static ioctl_fn lookup_ioctl(unsigned int cmd, int *ioctl_flags)
17881788

17891789
{DM_TARGET_MSG_CMD, 0, target_message},
17901790
{DM_DEV_SET_GEOMETRY_CMD, 0, dev_set_geometry},
1791-
{DM_DEV_ARM_POLL, IOCTL_FLAGS_NO_PARAMS, dev_arm_poll},
1792-
{DM_GET_TARGET_VERSION, 0, get_target_version},
1791+
{DM_DEV_ARM_POLL_CMD, IOCTL_FLAGS_NO_PARAMS, dev_arm_poll},
1792+
{DM_GET_TARGET_VERSION_CMD, 0, get_target_version},
17931793
};
17941794

17951795
if (unlikely(cmd >= ARRAY_SIZE(_ioctls)))

0 commit comments

Comments
 (0)