.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * RDMA resource limiting controller for cgroups. |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * additional RDMA resources after a certain limit is reached. |
---|
6 | 7 | * |
---|
7 | 8 | * 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. |
---|
12 | 9 | */ |
---|
13 | 10 | |
---|
14 | 11 | #include <linux/bitops.h> |
---|
.. | .. |
---|
313 | 310 | * If IB stack wish a device to participate in rdma cgroup resource |
---|
314 | 311 | * tracking, it must invoke this API to register with rdma cgroup before |
---|
315 | 312 | * 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. |
---|
318 | 313 | */ |
---|
319 | | -int rdmacg_register_device(struct rdmacg_device *device) |
---|
| 314 | +void rdmacg_register_device(struct rdmacg_device *device) |
---|
320 | 315 | { |
---|
321 | 316 | INIT_LIST_HEAD(&device->dev_node); |
---|
322 | 317 | INIT_LIST_HEAD(&device->rpools); |
---|
.. | .. |
---|
324 | 319 | mutex_lock(&rdmacg_mutex); |
---|
325 | 320 | list_add_tail(&device->dev_node, &rdmacg_devices); |
---|
326 | 321 | mutex_unlock(&rdmacg_mutex); |
---|
327 | | - return 0; |
---|
328 | 322 | } |
---|
329 | 323 | EXPORT_SYMBOL(rdmacg_register_device); |
---|
330 | 324 | |
---|