projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d043f9a
)
dm ioctl: fix a couple ioctl codes
author
Mikulas Patocka
<mpatocka@redhat.com>
Tue, 1 Nov 2022 20:54:27 +0000
(16:54 -0400)
committer
Mike Snitzer
<snitzer@kernel.org>
Thu, 1 Dec 2022 16:43:41 +0000
(11:43 -0500)
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>
drivers/md/dm-ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-ioctl.c
b/drivers/md/dm-ioctl.c
index cdadc77fa4fcde719080435da3ccbc18b3764982..36fc6ae4737a05ab53ab67a8ccee525cb5fda082 100644
(file)
--- a/
drivers/md/dm-ioctl.c
+++ b/
drivers/md/dm-ioctl.c
@@
-1788,8
+1788,8
@@
static ioctl_fn lookup_ioctl(unsigned int cmd, int *ioctl_flags)
{DM_TARGET_MSG_CMD, 0, target_message},
{DM_DEV_SET_GEOMETRY_CMD, 0, dev_set_geometry},
- {DM_DEV_ARM_POLL, IOCTL_FLAGS_NO_PARAMS, dev_arm_poll},
- {DM_GET_TARGET_VERSION, 0, get_target_version},
+ {DM_DEV_ARM_POLL
_CMD
, IOCTL_FLAGS_NO_PARAMS, dev_arm_poll},
+ {DM_GET_TARGET_VERSION
_CMD
, 0, get_target_version},
};
if (unlikely(cmd >= ARRAY_SIZE(_ioctls)))