hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/kernel/cgroup/rdma.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * RDMA resource limiting controller for cgroups.
34 *
....@@ -5,10 +6,6 @@
56 * additional RDMA resources after a certain limit is reached.
67 *
78 * Copyright (C) 2016 Parav Pandit <pandit.parav@gmail.com>
8
- *
9
- * This file is subject to the terms and conditions of version 2 of the GNU
10
- * General Public License. See the file COPYING in the main directory of the
11
- * Linux distribution for more details.
129 */
1310
1411 #include <linux/bitops.h>
....@@ -313,10 +310,8 @@
313310 * If IB stack wish a device to participate in rdma cgroup resource
314311 * tracking, it must invoke this API to register with rdma cgroup before
315312 * any user space application can start using the RDMA resources.
316
- * Returns 0 on success or EINVAL when table length given is beyond
317
- * supported size.
318313 */
319
-int rdmacg_register_device(struct rdmacg_device *device)
314
+void rdmacg_register_device(struct rdmacg_device *device)
320315 {
321316 INIT_LIST_HEAD(&device->dev_node);
322317 INIT_LIST_HEAD(&device->rpools);
....@@ -324,7 +319,6 @@
324319 mutex_lock(&rdmacg_mutex);
325320 list_add_tail(&device->dev_node, &rdmacg_devices);
326321 mutex_unlock(&rdmacg_mutex);
327
- return 0;
328322 }
329323 EXPORT_SYMBOL(rdmacg_register_device);
330324