Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RDMA/core: Align multiple functions to kernel coding style

This patch changes the small number of functions to be aligned to kernel
coding style. It is needed to minimize the diffstat of the following
patch. It doesn't change any functionality.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>

authored by

Leon Romanovsky and committed by
Doug Ledford
9549c2bd d6f91252

+21 -31
+1 -2
drivers/infiniband/core/addr.c
··· 662 662 struct rdma_dev_addr *addr, int timeout_ms, 663 663 void (*callback)(int status, struct sockaddr *src_addr, 664 664 struct rdma_dev_addr *addr, void *context), 665 - bool resolve_by_gid_attr, 666 - void *context) 665 + bool resolve_by_gid_attr, void *context) 667 666 { 668 667 struct sockaddr *src_in, *dst_in; 669 668 struct addr_req *req;
+4 -6
drivers/infiniband/core/sa.h
··· 49 49 } 50 50 51 51 int ib_sa_mcmember_rec_query(struct ib_sa_client *client, 52 - struct ib_device *device, u8 port_num, 53 - u8 method, 52 + struct ib_device *device, u8 port_num, u8 method, 54 53 struct ib_sa_mcmember_rec *rec, 55 - ib_sa_comp_mask comp_mask, 56 - int timeout_ms, gfp_t gfp_mask, 54 + ib_sa_comp_mask comp_mask, int timeout_ms, 55 + gfp_t gfp_mask, 57 56 void (*callback)(int status, 58 57 struct ib_sa_mcmember_rec *resp, 59 58 void *context), 60 - void *context, 61 - struct ib_sa_query **sa_query); 59 + void *context, struct ib_sa_query **sa_query); 62 60 63 61 int mcast_init(void); 64 62 void mcast_cleanup(void);
+1 -2
include/rdma/ib_addr.h
··· 102 102 struct rdma_dev_addr *addr, int timeout_ms, 103 103 void (*callback)(int status, struct sockaddr *src_addr, 104 104 struct rdma_dev_addr *addr, void *context), 105 - bool resolve_by_gid_attr, 106 - void *context); 105 + bool resolve_by_gid_attr, void *context); 107 106 108 107 void rdma_addr_cancel(struct rdma_dev_addr *addr); 109 108
+15 -21
include/rdma/ib_sa.h
··· 449 449 450 450 void ib_sa_cancel_query(int id, struct ib_sa_query *query); 451 451 452 - int ib_sa_path_rec_get(struct ib_sa_client *client, 453 - struct ib_device *device, u8 port_num, 454 - struct sa_path_rec *rec, 455 - ib_sa_comp_mask comp_mask, 456 - int timeout_ms, gfp_t gfp_mask, 457 - void (*callback)(int status, 458 - struct sa_path_rec *resp, 452 + int ib_sa_path_rec_get(struct ib_sa_client *client, struct ib_device *device, 453 + u8 port_num, struct sa_path_rec *rec, 454 + ib_sa_comp_mask comp_mask, int timeout_ms, 455 + gfp_t gfp_mask, 456 + void (*callback)(int status, struct sa_path_rec *resp, 459 457 void *context), 460 - void *context, 461 - struct ib_sa_query **query); 458 + void *context, struct ib_sa_query **query); 462 459 463 460 int ib_sa_service_rec_query(struct ib_sa_client *client, 464 - struct ib_device *device, u8 port_num, 465 - u8 method, 466 - struct ib_sa_service_rec *rec, 467 - ib_sa_comp_mask comp_mask, 468 - int timeout_ms, gfp_t gfp_mask, 469 - void (*callback)(int status, 470 - struct ib_sa_service_rec *resp, 471 - void *context), 472 - void *context, 473 - struct ib_sa_query **sa_query); 461 + struct ib_device *device, u8 port_num, u8 method, 462 + struct ib_sa_service_rec *rec, 463 + ib_sa_comp_mask comp_mask, int timeout_ms, 464 + gfp_t gfp_mask, 465 + void (*callback)(int status, 466 + struct ib_sa_service_rec *resp, 467 + void *context), 468 + void *context, struct ib_sa_query **sa_query); 474 469 475 470 struct ib_sa_multicast { 476 471 struct ib_sa_mcmember_rec rec; ··· 572 577 void (*callback)(int status, 573 578 struct ib_sa_guidinfo_rec *resp, 574 579 void *context), 575 - void *context, 576 - struct ib_sa_query **sa_query); 580 + void *context, struct ib_sa_query **sa_query); 577 581 578 582 bool ib_sa_sendonly_fullmem_support(struct ib_sa_client *client, 579 583 struct ib_device *device,