mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
ece9ca97cc
commit
974d6b4b2b
5 changed files with 56 additions and 134 deletions
|
|
@ -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__
|
||||
|
|
|
|||
Loading…
Reference in a new issue