]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Simplify method definition macros
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Jul 2018 05:50:26 +0000 (08:50 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Jul 2018 19:47:01 +0000 (13:47 -0600)
commit26c4c18cafdf019f240f86bd8e9e0cb733c1401f
tree24961a06b5f83db6b638415fa575e5cd5d4115be
parent233e8dba00d42eae61a51e4cf80835090960bd35
RDMA/uverbs: Simplify method definition macros

Instead of the large set of indirecting macros, define the few needed
macros to directly instantiate the struct uverbs_method_def and associated
attributes list.

This is small amount of code duplication but the readability is far
better.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/core/uverbs_std_types_counters.c
drivers/infiniband/core/uverbs_std_types_cq.c
drivers/infiniband/core/uverbs_std_types_dm.c
drivers/infiniband/core/uverbs_std_types_flow_action.c
drivers/infiniband/core/uverbs_std_types_mr.c
drivers/infiniband/hw/mlx5/devx.c
include/rdma/uverbs_ioctl.h
include/rdma/uverbs_named_ioctl.h