]> git.baikalelectronics.ru Git - kernel.git/commitdiff
RDMA/mlx5: Limit scope of get vector affinity local function
authorLeon Romanovsky <leon@kernel.org>
Thu, 17 Aug 2017 12:50:53 +0000 (15:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 20:44:48 +0000 (16:44 -0400)
The mlx5_ib_get_vector_affinity() call is local to main.c file and there
is no need to be declared globally visible.

Fixes: 40b24403f33e ("mlx5: support ->get_vector_affinity")
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c

index 1a67668f092f6f70f79d2a7b904cb94f0f58660e..762ef6bf219e0e7ae860d8f3978df942ebfe4078 100644 (file)
@@ -3819,8 +3819,8 @@ static void init_delay_drop(struct mlx5_ib_dev *dev)
                mlx5_ib_warn(dev, "Failed to init delay drop debugfs\n");
 }
 
-const struct cpumask *mlx5_ib_get_vector_affinity(struct ib_device *ibdev,
-               int comp_vector)
+static const struct cpumask *
+mlx5_ib_get_vector_affinity(struct ib_device *ibdev, int comp_vector)
 {
        struct mlx5_ib_dev *dev = to_mdev(ibdev);