Commit d0ceebd7 authored by Fengguang Wu's avatar Fengguang Wu Committed by David S. Miller

net/mlx4_en: mlx4_en_verify_params() can be static

Fix static error introduced by commit:
b97b33a3 [645/653] net/mlx4_en: Verify
mlx4_en module parameters

sparse warnings:
drivers/net/ethernet/mellanox/mlx4/en_main.c:335:6: sparse: symbol
'mlx4_en_verify_params' was not declared. Should it be static?

CC: netdev@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f3253339
...@@ -332,7 +332,7 @@ static struct mlx4_interface mlx4_en_interface = { ...@@ -332,7 +332,7 @@ static struct mlx4_interface mlx4_en_interface = {
.protocol = MLX4_PROT_ETH, .protocol = MLX4_PROT_ETH,
}; };
void mlx4_en_verify_params(void) static void mlx4_en_verify_params(void)
{ {
if (pfctx > MAX_PFC_TX) { if (pfctx > MAX_PFC_TX) {
pr_warn("mlx4_en: WARNING: illegal module parameter pfctx 0x%x - should be in range 0-0x%x, will be changed to default (0)\n", pr_warn("mlx4_en: WARNING: illegal module parameter pfctx 0x%x - should be in range 0-0x%x, will be changed to default (0)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment