Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>

authored by

Mikulas Patocka and committed by
Mike Snitzer
b52c3de8 d043f9a1

+2 -2
+2 -2
drivers/md/dm-ioctl.c
··· 1788 1788 1789 1789 {DM_TARGET_MSG_CMD, 0, target_message}, 1790 1790 {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}, 1793 1793 }; 1794 1794 1795 1795 if (unlikely(cmd >= ARRAY_SIZE(_ioctls)))