IB/core: Introduce DECLARE_UVERBS_GLOBAL_METHODS
authorYishai Hadas <yishaih@mellanox.com>
Sun, 17 Jun 2018 09:59:58 +0000 (12:59 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Jun 2018 16:53:02 +0000 (10:53 -0600)
commite502a864c3526aa93b983d4b14e9615b3da430e6
tree3b5fa3a8cf0bfecc984b144374bd0ab22fe06b27
parent19b9def25852caf710b978cd27955090650f115b
IB/core: Introduce DECLARE_UVERBS_GLOBAL_METHODS

Introduce a new macro to be used for global methods on a singleton
object.

This macros sets internally the type_attrs to be NULL as such an object
can't be created.

Downstream patches from this series will use this macro.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/uverbs_named_ioctl.h
include/rdma/uverbs_std_types.h