Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf774d14 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

qed: Make some functions static



Fixes the following sparse warning:

drivers/net/ethernet/qlogic/qed/qed_cxt.c:1534:6: warning: symbol 'qed_cm_init_pf' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_dev.c:233:4: warning: symbol 'qed_init_qm_get_num_tcs' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_dev.c:238:5: warning: symbol 'qed_init_qm_get_num_vfs' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_dev.c:246:5: warning: symbol 'qed_init_qm_get_num_pf_rls' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_dev.c:264:5: warning: symbol 'qed_init_qm_get_num_vports' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_dev.c:276:5: warning: symbol 'qed_init_qm_get_num_pqs' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_mcp.c:573:5: warning: symbol 'qed_mcp_nvm_wr_cmd' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_mcp.c:3012:1: warning: symbol '__qed_mcp_resc_lock' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_dcbx.c:870:6: warning: symbol 'qed_dcbx_aen' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_debug.c:7841:5: warning: symbol 'qed_dbg_nvm_image_length' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_debug.c:7857:5: warning: symbol 'qed_dbg_nvm_image' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_sriov.c:675:6: warning: symbol '_qed_iov_pf_sanity_check' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_sriov.c:690:6: warning: symbol 'qed_iov_pf_sanity_check' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_sriov.c:3982:6: warning: symbol 'qed_iov_pf_get_pending_events' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_vf.c:172:5: warning: symbol '_qed_vf_pf_release' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_rdma.c:137:5: warning: symbol 'qed_rdma_get_sb_id' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_rdma.c:709:5: warning: symbol 'qed_rdma_stop' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_ll2.c:161:6: warning: symbol 'qed_ll2b_complete_rx_packet' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_roce.c:160:6: warning: symbol 'qed_roce_free_cid_pair' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_iwarp.c:380:12: warning: symbol 'iwarp_state_names' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_iwarp.c:946:1: warning: symbol 'qed_iwarp_parse_private_data' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_iwarp.c:971:1: warning: symbol 'qed_iwarp_mpa_reply_arrived' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_iwarp.c:2504:1: warning: symbol 'qed_iwarp_ll2_slowpath' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_iwarp.c:2806:6: warning: symbol 'qed_iwarp_qp_in_error' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_iwarp.c:2827:6: warning: symbol 'qed_iwarp_exception_received' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_iwarp.c:2958:1: warning: symbol 'qed_iwarp_connect_complete' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_iscsi.c:876:6: warning: symbol 'qed_iscsi_free_connection' was not declared. Should it be static?

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarDenis Bolotin <Denis.Bolotin@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e65d4d96
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1531,7 +1531,7 @@ void qed_qm_init_pf(struct qed_hwfn *p_hwfn,
}
}


/* CM PF */
/* CM PF */
void qed_cm_init_pf(struct qed_hwfn *p_hwfn)
static void qed_cm_init_pf(struct qed_hwfn *p_hwfn)
{
{
	/* XCM pure-LB queue */
	/* XCM pure-LB queue */
	STORE_RT_REG(p_hwfn, XCM_REG_CON_PHY_Q3_RT_OFFSET,
	STORE_RT_REG(p_hwfn, XCM_REG_CON_PHY_Q3_RT_OFFSET,
+1 −1
Original line number Original line Diff line number Diff line
@@ -867,7 +867,7 @@ static int qed_dcbx_read_mib(struct qed_hwfn *p_hwfn,
	return rc;
	return rc;
}
}


void qed_dcbx_aen(struct qed_hwfn *hwfn, u32 mib_type)
static void qed_dcbx_aen(struct qed_hwfn *hwfn, u32 mib_type)
{
{
	struct qed_common_cb_ops *op = hwfn->cdev->protocol_ops.common;
	struct qed_common_cb_ops *op = hwfn->cdev->protocol_ops.common;
	void *cookie = hwfn->cdev->ops_cookie;
	void *cookie = hwfn->cdev->ops_cookie;
+5 −4
Original line number Original line Diff line number Diff line
@@ -7838,7 +7838,7 @@ int qed_dbg_igu_fifo_size(struct qed_dev *cdev)
	return qed_dbg_feature_size(cdev, DBG_FEATURE_IGU_FIFO);
	return qed_dbg_feature_size(cdev, DBG_FEATURE_IGU_FIFO);
}
}


int qed_dbg_nvm_image_length(struct qed_hwfn *p_hwfn,
static int qed_dbg_nvm_image_length(struct qed_hwfn *p_hwfn,
				    enum qed_nvm_images image_id, u32 *length)
				    enum qed_nvm_images image_id, u32 *length)
{
{
	struct qed_nvm_image_att image_att;
	struct qed_nvm_image_att image_att;
@@ -7854,8 +7854,9 @@ int qed_dbg_nvm_image_length(struct qed_hwfn *p_hwfn,
	return rc;
	return rc;
}
}


int qed_dbg_nvm_image(struct qed_dev *cdev, void *buffer,
static int qed_dbg_nvm_image(struct qed_dev *cdev, void *buffer,
		      u32 *num_dumped_bytes, enum qed_nvm_images image_id)
			     u32 *num_dumped_bytes,
			     enum qed_nvm_images image_id)
{
{
	struct qed_hwfn *p_hwfn =
	struct qed_hwfn *p_hwfn =
		&cdev->hwfns[cdev->dbg_params.engine_for_debug];
		&cdev->hwfns[cdev->dbg_params.engine_for_debug];
+5 −5
Original line number Original line Diff line number Diff line
@@ -230,12 +230,12 @@ static u32 qed_get_pq_flags(struct qed_hwfn *p_hwfn)
}
}


/* Getters for resource amounts necessary for qm initialization */
/* Getters for resource amounts necessary for qm initialization */
u8 qed_init_qm_get_num_tcs(struct qed_hwfn *p_hwfn)
static u8 qed_init_qm_get_num_tcs(struct qed_hwfn *p_hwfn)
{
{
	return p_hwfn->hw_info.num_hw_tc;
	return p_hwfn->hw_info.num_hw_tc;
}
}


u16 qed_init_qm_get_num_vfs(struct qed_hwfn *p_hwfn)
static u16 qed_init_qm_get_num_vfs(struct qed_hwfn *p_hwfn)
{
{
	return IS_QED_SRIOV(p_hwfn->cdev) ?
	return IS_QED_SRIOV(p_hwfn->cdev) ?
	       p_hwfn->cdev->p_iov_info->total_vfs : 0;
	       p_hwfn->cdev->p_iov_info->total_vfs : 0;
@@ -243,7 +243,7 @@ u16 qed_init_qm_get_num_vfs(struct qed_hwfn *p_hwfn)


#define NUM_DEFAULT_RLS 1
#define NUM_DEFAULT_RLS 1


u16 qed_init_qm_get_num_pf_rls(struct qed_hwfn *p_hwfn)
static u16 qed_init_qm_get_num_pf_rls(struct qed_hwfn *p_hwfn)
{
{
	u16 num_pf_rls, num_vfs = qed_init_qm_get_num_vfs(p_hwfn);
	u16 num_pf_rls, num_vfs = qed_init_qm_get_num_vfs(p_hwfn);


@@ -261,7 +261,7 @@ u16 qed_init_qm_get_num_pf_rls(struct qed_hwfn *p_hwfn)
	return num_pf_rls;
	return num_pf_rls;
}
}


u16 qed_init_qm_get_num_vports(struct qed_hwfn *p_hwfn)
static u16 qed_init_qm_get_num_vports(struct qed_hwfn *p_hwfn)
{
{
	u32 pq_flags = qed_get_pq_flags(p_hwfn);
	u32 pq_flags = qed_get_pq_flags(p_hwfn);


@@ -273,7 +273,7 @@ u16 qed_init_qm_get_num_vports(struct qed_hwfn *p_hwfn)
}
}


/* calc amount of PQs according to the requested flags */
/* calc amount of PQs according to the requested flags */
u16 qed_init_qm_get_num_pqs(struct qed_hwfn *p_hwfn)
static u16 qed_init_qm_get_num_pqs(struct qed_hwfn *p_hwfn)
{
{
	u32 pq_flags = qed_get_pq_flags(p_hwfn);
	u32 pq_flags = qed_get_pq_flags(p_hwfn);


+2 −2
Original line number Original line Diff line number Diff line
@@ -873,7 +873,7 @@ static void qed_iscsi_release_connection(struct qed_hwfn *p_hwfn,
	spin_unlock_bh(&p_hwfn->p_iscsi_info->lock);
	spin_unlock_bh(&p_hwfn->p_iscsi_info->lock);
}
}


void qed_iscsi_free_connection(struct qed_hwfn *p_hwfn,
static void qed_iscsi_free_connection(struct qed_hwfn *p_hwfn,
				      struct qed_iscsi_conn *p_conn)
				      struct qed_iscsi_conn *p_conn)
{
{
	qed_chain_free(p_hwfn->cdev, &p_conn->xhq);
	qed_chain_free(p_hwfn->cdev, &p_conn->xhq);
Loading