RDMA/mlx5: Separate restrack callbacks initialization from main.c
The restrack code has separate .c, so move callbacks initialization to that file to improve code locality. Link: https://lore.kernel.org/r/20200702081809.423482-3-leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
此提交包含在:
@@ -0,0 +1,13 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
|
||||
/*
|
||||
* Copyright (c) 2013-2020, Mellanox Technologies Ltd. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MLX5_IB_RESTRACK_H
|
||||
#define _MLX5_IB_RESTRACK_H
|
||||
|
||||
#include "mlx5_ib.h"
|
||||
|
||||
int mlx5_ib_restrack_init(struct mlx5_ib_dev *dev);
|
||||
|
||||
#endif /* _MLX5_IB_RESTRACK_H */
|
新增問題並參考
封鎖使用者