| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 12 | 4 | */ |
|---|
| 13 | 5 | |
|---|
| 14 | 6 | #include "core_priv.h" |
|---|
| .. | .. |
|---|
| 21 | 13 | * Register with the rdma cgroup. Should be called before |
|---|
| 22 | 14 | * exposing rdma device to user space applications to avoid |
|---|
| 23 | 15 | * resource accounting leak. |
|---|
| 24 | | - * Returns 0 on success or otherwise failure code. |
|---|
| 25 | 16 | */ |
|---|
| 26 | | -int ib_device_register_rdmacg(struct ib_device *device) |
|---|
| 17 | +void ib_device_register_rdmacg(struct ib_device *device) |
|---|
| 27 | 18 | { |
|---|
| 28 | 19 | device->cg_device.name = device->name; |
|---|
| 29 | | - return rdmacg_register_device(&device->cg_device); |
|---|
| 20 | + rdmacg_register_device(&device->cg_device); |
|---|
| 30 | 21 | } |
|---|
| 31 | 22 | |
|---|
| 32 | 23 | /** |
|---|