net/mlx5: Make function mlx5_fpga_tls_send_teardown_cmd() static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 31 May 2018 02:31:12 +0000 (02:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Jun 2018 14:36:31 +0000 (10:36 -0400)
Fixes the following sparse warning:

drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:199:6: warning:
 symbol 'mlx5_fpga_tls_send_teardown_cmd' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c

index 21048013826c9966806aacd2e5988c9981677896..c9736238604ab266d320e380bbcb03e1b4b3cdb9 100644 (file)
@@ -196,8 +196,8 @@ static void mlx5_fpga_tls_flow_to_cmd(void *flow, void *cmd)
                 MLX5_GET(tls_flow, flow, direction_sx));
 }
 
-void mlx5_fpga_tls_send_teardown_cmd(struct mlx5_core_dev *mdev, void *flow,
-                                    u32 swid, gfp_t flags)
+static void mlx5_fpga_tls_send_teardown_cmd(struct mlx5_core_dev *mdev,
+                                           void *flow, u32 swid, gfp_t flags)
 {
        struct mlx5_teardown_stream_context *ctx;
        struct mlx5_fpga_dma_buf *buf;