mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
RDMA/uverbs: Do not pass ib_uverbs_file to ioctl methods
The uverbs_attr_bundle already contains this pointer, and most methods don't actually need it. Get rid of the redundant function argument. Signed-off-by: Jason Gunthorpe <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
This commit is contained in:
parent
7106a97697
commit
15a1b4becb
12 changed files with 35 additions and 43 deletions
|
|
@ -4209,8 +4209,8 @@ void rdma_roce_rescan_device(struct ib_device *ibdev);
|
|||
|
||||
struct ib_ucontext *ib_uverbs_get_ucontext_file(struct ib_uverbs_file *ufile);
|
||||
|
||||
int uverbs_destroy_def_handler(struct ib_uverbs_file *file,
|
||||
struct uverbs_attr_bundle *attrs);
|
||||
|
||||
int uverbs_destroy_def_handler(struct uverbs_attr_bundle *attrs);
|
||||
|
||||
struct net_device *rdma_alloc_netdev(struct ib_device *device, u8 port_num,
|
||||
enum rdma_netdev_t type, const char *name,
|
||||
|
|
|
|||
|
|
@ -327,8 +327,7 @@ struct uverbs_method_def {
|
|||
u32 flags;
|
||||
size_t num_attrs;
|
||||
const struct uverbs_attr_def * const (*attrs)[];
|
||||
int (*handler)(struct ib_uverbs_file *ufile,
|
||||
struct uverbs_attr_bundle *ctx);
|
||||
int (*handler)(struct uverbs_attr_bundle *attrs);
|
||||
};
|
||||
|
||||
struct uverbs_object_def {
|
||||
|
|
|
|||
Loading…
Reference in a new issue