forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/infiniband/core/cgroup.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2016 Parav Pandit <pandit.parav@gmail.com>
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
124 */
135
146 #include "core_priv.h"
....@@ -21,12 +13,11 @@
2113 * Register with the rdma cgroup. Should be called before
2214 * exposing rdma device to user space applications to avoid
2315 * resource accounting leak.
24
- * Returns 0 on success or otherwise failure code.
2516 */
26
-int ib_device_register_rdmacg(struct ib_device *device)
17
+void ib_device_register_rdmacg(struct ib_device *device)
2718 {
2819 device->cg_device.name = device->name;
29
- return rdmacg_register_device(&device->cg_device);
20
+ rdmacg_register_device(&device->cg_device);
3021 }
3122
3223 /**