]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Simplify UVERBS_OBJECT and _TREE family of macros
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Jul 2018 05:50:27 +0000 (08:50 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Jul 2018 19:47:01 +0000 (13:47 -0600)
commit46a9f0a4d85d6750e4f981d96d7ff4a619806def
tree09b2b9bfb5ac867602397711de458b0f44883873
parent26c4c18cafdf019f240f86bd8e9e0cb733c1401f
RDMA/uverbs: Simplify UVERBS_OBJECT and _TREE family of macros

Instead of the large set of indirecting macros, define the few needed
macros to directly instantiate the struct uverbs_oject_tree_def and
associated objects 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.h
drivers/infiniband/core/uverbs_std_types.c
drivers/infiniband/core/uverbs_std_types_cq.c
drivers/infiniband/hw/mlx5/devx.c
include/rdma/uverbs_ioctl.h
include/rdma/uverbs_named_ioctl.h