summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorZhu Yanjun <zyjzyj2000@gmail.com>2019-12-14 10:51:17 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2020-01-07 10:40:22 -0800
commit8007880a2ca97c34e7ccd1fcf12daf854b792544 (patch)
treebd3b374c14f21062c4e9645388da664c20716926 /include
parent1b935183aeff11256b20a490b5ed37116b054fe2 (diff)
downloadlinux-8007880a2ca97c34e7ccd1fcf12daf854b792544.tar.gz
linux-8007880a2ca97c34e7ccd1fcf12daf854b792544.tar.bz2
linux-8007880a2ca97c34e7ccd1fcf12daf854b792544.zip
net/mlx5: limit the function in local scope
The function mlx5_buf_alloc_node is only used by the function in the local scope. So it is appropriate to limit this function in the local scope. Signed-off-by: Zhu Yanjun <zyjzyj2000@gmail.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/driver.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 27200dea0297..59cff380f41a 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -928,8 +928,6 @@ void mlx5_start_health_poll(struct mlx5_core_dev *dev);
void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health);
void mlx5_drain_health_wq(struct mlx5_core_dev *dev);
void mlx5_trigger_health_work(struct mlx5_core_dev *dev);
-int mlx5_buf_alloc_node(struct mlx5_core_dev *dev, int size,
- struct mlx5_frag_buf *buf, int node);
int mlx5_buf_alloc(struct mlx5_core_dev *dev,
int size, struct mlx5_frag_buf *buf);
void mlx5_buf_free(struct mlx5_core_dev *dev, struct mlx5_frag_buf *buf);