summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2020-04-23 15:27:40 +0800
committerDavid S. Miller <davem@davemloft.net>2020-04-23 15:53:52 -0700
commit8ffe2df6426f874659a3aa1654f45ba83fa91f87 (patch)
treef585f267db74aee5b9d66e21337d54a685a03e5c
parent3c9143d96852485725d330b9164062d8f2d90a38 (diff)
downloadlinux-8ffe2df6426f874659a3aa1654f45ba83fa91f87.tar.bz2
qed: Make ll2_cbs static
Fix the following sparse warning: drivers/net/ethernet/qlogic/qed/qed_ll2.c:2334:20: warning: symbol 'll2_cbs' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Acked-by: Michal KalderonĀ <michal.kalderon@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_ll2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_ll2.c b/drivers/net/ethernet/qlogic/qed/qed_ll2.c
index 037e5978787e..4afd8572ada6 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_ll2.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_ll2.c
@@ -2331,7 +2331,7 @@ static void qed_ll2_register_cb_ops(struct qed_dev *cdev,
cdev->ll2->cb_cookie = cookie;
}
-struct qed_ll2_cbs ll2_cbs = {
+static struct qed_ll2_cbs ll2_cbs = {
.rx_comp_cb = &qed_ll2b_complete_rx_packet,
.rx_release_cb = &qed_ll2b_release_rx_packet,
.tx_comp_cb = &qed_ll2b_complete_tx_packet,