summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-11-25 20:58:45 +0200
committerDoug Ledford <dledford@redhat.com>2018-12-03 12:01:58 -0500
commit974d6b4b2bc33c53334e086a40715b384f48f2e2 (patch)
tree86a6308f6ce39cc4127f0e4f03dd8348e4b7effd /include/rdma
parentece9ca97ccdc845c0c48e204e5a6d9149b7a24b3 (diff)
downloadlinux-974d6b4b2bc33c53334e086a40715b384f48f2e2.tar.bz2
RDMA/uverbs: Use only attrs for the write() handler signature
All of the old arguments can be derived from the uverbs_attr_bundle structure, so get rid of the redundant arguments. Most of the prior work has been removing users of the arguments to allow this to be a simple patch. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/uverbs_ioctl.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/rdma/uverbs_ioctl.h b/include/rdma/uverbs_ioctl.h
index 9486a525afc1..7f4ace93e502 100644
--- a/include/rdma/uverbs_ioctl.h
+++ b/include/rdma/uverbs_ioctl.h
@@ -373,11 +373,7 @@ struct uapi_definition {
union {
bool (*func_is_supported)(struct ib_device *device);
- int (*func_write)(struct uverbs_attr_bundle *attrs,
- const char __user *buf, int in_len,
- int out_len);
- int (*func_write_ex)(struct uverbs_attr_bundle *attrs,
- struct ib_udata *ucore);
+ int (*func_write)(struct uverbs_attr_bundle *attrs);
const struct uapi_definition *chain;
const struct uverbs_object_def *chain_obj_tree;
size_t needs_fn_offset;
@@ -409,7 +405,7 @@ struct uapi_definition {
.kind = UAPI_DEF_WRITE, \
.scope = UAPI_SCOPE_OBJECT, \
.write = { .is_ex = 1, .command_num = _command_num }, \
- .func_write_ex = _func, \
+ .func_write = _func, \
_cmd_desc, \
}, \
##__VA_ARGS__