mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 05:55:02 +08:00
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>
This commit is contained in:
parent
3c9143d968
commit
8ffe2df642
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user