aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/cgroup_rdma.h
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2019-01-17 20:14:15 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-01-18 13:43:10 -0700
commit7527a7b157d1191b23562ed70154ae93bd65f845 (patch)
tree382fd749193a6ce689785824694c09a51edea3e4 /include/linux/cgroup_rdma.h
parentRDMA/qedr: remove set but not used variable 'ib_ctx' (diff)
downloadwireguard-linux-7527a7b157d1191b23562ed70154ae93bd65f845.tar.xz
wireguard-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.h2
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 */