Skip to content

Commit 974d6b4

Browse files
jgunthorpedledford
authored andcommitted
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>
1 parent ece9ca9 commit 974d6b4

File tree

5 files changed

+56
-134
lines changed

5 files changed

+56
-134
lines changed

drivers/infiniband/core/rdma_core.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,7 @@ struct uverbs_api_ioctl_method {
137137
};
138138

139139
struct uverbs_api_write_method {
140-
int (*handler)(struct uverbs_attr_bundle *attrs, const char __user *buf,
141-
int in_len, int out_len);
142-
int (*handler_ex)(struct uverbs_attr_bundle *attrs,
143-
struct ib_udata *ucore);
140+
int (*handler)(struct uverbs_attr_bundle *attrs);
144141
u8 disabled:1;
145142
u8 is_ex:1;
146143
u8 has_udata:1;

0 commit comments

Comments
 (0)