diff options
author | Parav Pandit <parav@mellanox.com> | 2019-01-17 20:14:15 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-01-18 13:43:10 -0700 |
commit | 7527a7b157d1191b23562ed70154ae93bd65f845 (patch) | |
tree | 382fd749193a6ce689785824694c09a51edea3e4 /include/linux/cgroup_rdma.h | |
parent | 8ea175f0056dd72e6a86f6852d0db542efbb08f6 (diff) | |
download | linux-7527a7b157d1191b23562ed70154ae93bd65f845.tar.gz linux-7527a7b157d1191b23562ed70154ae93bd65f845.tar.bz2 linux-7527a7b157d1191b23562ed70154ae93bd65f845.zip |
IB/core: Simplify rdma cgroup registration
RDMA cgroup registration routine always returns success, so simplify
function to be void and run clang formatter over whole CONFIG_CGROUP_RDMA
art of core_priv.h.
This reduces unwinding error path for regular registration and future net
namespace change functionality for rdma device.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/linux/cgroup_rdma.h')
-rw-r--r-- | include/linux/cgroup_rdma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cgroup_rdma.h b/include/linux/cgroup_rdma.h index e94290b29e99..ef1bae2983f3 100644 --- a/include/linux/cgroup_rdma.h +++ b/include/linux/cgroup_rdma.h @@ -39,7 +39,7 @@ struct rdmacg_device { * APIs for RDMA/IB stack to publish when a device wants to * participate in resource accounting */ -int rdmacg_register_device(struct rdmacg_device *device); +void rdmacg_register_device(struct rdmacg_device *device); void rdmacg_unregister_device(struct rdmacg_device *device); /* APIs for RDMA/IB stack to charge/uncharge pool specific resources */ |