aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/uverbs_main.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2018-02-21 18:12:42 +0200
committerDoug Ledford <dledford@redhat.com>2018-02-22 22:31:18 -0500
commitcd35cf4b40f351fc9e53c2e2877a56da87dcd46d (patch)
tree08aec29633b9a9c7bd3c7d9e490d5ca63e8bab30 /drivers/infiniband/core/uverbs_main.c
parentRDMA/uverbs: Refactor the header validation logic (diff)
downloadlinux-dev-cd35cf4b40f351fc9e53c2e2877a56da87dcd46d.tar.xz
linux-dev-cd35cf4b40f351fc9e53c2e2877a56da87dcd46d.zip
RDMA/uverbs: Replace user's types with kernel's types
The internal to kernel variable declarations don't need to be declared with user types. This patch converts such occurrences appeared in ib_uverbs_write(). Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/core/uverbs_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c
index 12d6e5631164..2a6deecf6f76 100644
--- a/drivers/infiniband/core/uverbs_main.c
+++ b/drivers/infiniband/core/uverbs_main.c
@@ -636,7 +636,7 @@ err_put_refs:
}
static bool verify_command_mask(struct ib_device *ib_dev,
- __u32 command, bool extended)
+ u32 command, bool extended)
{
if (!extended)
return ib_dev->uverbs_cmd_mask & BIT_ULL(command);
@@ -655,11 +655,11 @@ static bool verify_command_idx(u32 command, bool extended)
}
static ssize_t process_hdr(struct ib_uverbs_cmd_hdr *hdr,
- __u32 *command, bool *extended)
+ u32 *command, bool *extended)
{
- __u32 flags;
+ u32 flags;
- if (hdr->command & ~(__u32)(IB_USER_VERBS_CMD_FLAGS_MASK |
+ if (hdr->command & ~(u32)(IB_USER_VERBS_CMD_FLAGS_MASK |
IB_USER_VERBS_CMD_COMMAND_MASK))
return -EINVAL;
@@ -721,8 +721,8 @@ static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf,
struct ib_device *ib_dev;
struct ib_uverbs_cmd_hdr hdr;
bool extended;
- __u32 command;
int srcu_key;
+ u32 command;
ssize_t ret;
if (!ib_safe_file_access(filp)) {