net/mlx5: FPGA, make mlx5_fpga_device_brb static
authorIlan Tayari <ilant@mellanox.com>
Sun, 2 Jul 2017 11:36:57 +0000 (14:36 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 6 Jul 2017 12:13:20 +0000 (15:13 +0300)
Fix warning when building with -Wall:
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c:105:5: warning: symbol 'mlx5_fpga_device_brb' was not declared. Should it be static?

Fixes: c43051d72a8d ("net/mlx5: FPGA, Add SBU bypass and reset flows")
Reported-by: Or Gerlitz <gerlitz.or@gmail.com>
Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c

index 31e5a2627eb8a6a2ec9aad78a6e2ab3d8aa5ab4f..9034e9960a761fa7245cbfab9dd66cf0c434a522 100644 (file)
@@ -102,7 +102,7 @@ static int mlx5_fpga_device_load_check(struct mlx5_fpga_device *fdev)
        return 0;
 }
 
-int mlx5_fpga_device_brb(struct mlx5_fpga_device *fdev)
+static int mlx5_fpga_device_brb(struct mlx5_fpga_device *fdev)
 {
        int err;
        struct mlx5_core_dev *mdev = fdev->mdev;