net: mlx4: Staticize local functions
Subsystems (3)
PATCH 4/4 net: mlx4: Staticize local functions
These local functions are used only in this file.
Fix the following sparse warnings:
drivers/net/ethernet/mellanox/mlx4/cmd.c:803:5: warning: symbol 'MLX4_CMD_UPDATE_QP_wrapper' was not declared. Should it be static? drivers/net/ethernet/mellanox/mlx4/cmd.c:812:5: warning: symbol 'MLX4_CMD_GET_OP_REQ_wrapper' was not declared. Should it be static? drivers/net/ethernet/mellanox/mlx4/cmd.c:1547:5: warning: symbol 'mlx4_master_immediate_activate_vlan_qos' was not declared. Should it be static?
--- drivers/net/ethernet/mellanox/mlx4/cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/ethernet/mellanox/mlx4/cmd.c +3 -3
@@ -800,7 +800,7 @@ static int mlx4_MAD_IFC_wrapper(struct mlx4_dev *dev, int slave, vhcr->op, MLX4_CMD_TIME_CLASS_C, MLX4_CMD_NATIVE); } -int MLX4_CMD_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave, +static int MLX4_CMD_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, struct mlx4_cmd_mailbox *inbox, struct mlx4_cmd_mailbox *outbox,
@@ -809,7 +809,7 @@ int MLX4_CMD_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave,return -EPERM ; } -int MLX4_CMD_GET_OP_REQ_wrapper(struct mlx4_dev *dev, int slave, +static int MLX4_CMD_GET_OP_REQ_wrapper(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, struct mlx4_cmd_mailbox *inbox, struct mlx4_cmd_mailbox *outbox,
@@ -1544,7 +1544,7 @@ static int calculate_transition(u16 oper_vlan, u16 admin_vlan)return (2 * (oper_vlan ==MLX4_VGT ) + (admin_vlan ==MLX4_VGT )); } -int mlx4_master_immediate_activate_vlan_qos (struct mlx4_priv *priv, +static int mlx4_master_immediate_activate_vlan_qos (struct mlx4_priv *priv,int slave,int port) {struct mlx4_vport_oper_state *vp_oper;
Signature · 1 line
1.7.10.4
Quoted 37 lines · Jingoo Han
These local functions are used only in this file.
Fix the following sparse warnings:
drivers/net/ethernet/mellanox/mlx4/cmd.c:803:5: warning: symbol 'MLX4_CMD_UPDATE_QP_wrapper' was not declared. Should it be static?drivers/net/ethernet/mellanox/mlx4/cmd.c:812:5: warning: symbol 'MLX4_CMD_GET_OP_REQ_wrapper' was not declared. Should it be static?drivers/net/ethernet/mellanox/mlx4/cmd.c:1547:5: warning: symbol 'mlx4_master_immediate_activate_vlan_qos' was not declared. Should it be static?Signed-off-by Jingoo Han <[email protected]>--- drivers/net/ethernet/mellanox/mlx4/cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/net/ethernet/mellanox/mlx4/cmd.c +2
-2@@ -800,7 +800,7 @@ static int mlx4_MAD_IFC_wrapper(struct mlx4_dev *dev, int slave, vhcr->op, MLX4_CMD_TIME_CLASS_C, MLX4_CMD_NATIVE); } -int MLX4_CMD_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave, +static int MLX4_CMD_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, struct mlx4_cmd_mailbox *inbox, struct mlx4_cmd_mailbox *outbox,@@ -809,7 +809,7 @@ int MLX4_CMD_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave,return -EPERM ; } -int MLX4_CMD_GET_OP_REQ_wrapper(struct mlx4_dev *dev, int slave, +static int MLX4_CMD_GET_OP_REQ_wrapper(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, struct mlx4_cmd_mailbox *inbox, struct mlx4_cmd_mailbox *outbox,
drivers/net/ethernet/mellanox/mlx4/cmd.c static int calculate_transition(u16 oper_vlan, u16 admin_vlan) · line 1550
Quoted 8 lines
drivers/net/ethernet/mellanox/mlx4/cmd.c +1
-1@@ -1544,7 +1544,7 @@ static int calculate_transition(u16 oper_vlan, u16 admin_vlan)return (2 * (oper_vlan ==MLX4_VGT ) + (admin_vlan ==MLX4_VGT )); } -int mlx4_master_immediate_activate_vlan_qos (struct mlx4_priv *priv, +static int mlx4_master_immediate_activate_vlan_qos (struct mlx4_priv *priv,int slave,int port) {struct mlx4_vport_oper_state *vp_oper;
From: Jingoo Han <[email protected]>
Date: Mon, 05 Aug 2013 18:04:51 +0900
Quoted 2 lines
These local functions are used only in this file.
Fix the following sparse warnings:
...
Quoted 1 line
Signed-off-by Jingoo Han <[email protected]>
Applied.