]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
qed: Remove unused qed_db_recovery_dp
authorDr. David Alan Gilbert <linux@treblig.org>
Mon, 14 Apr 2025 00:52:47 +0000 (01:52 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:26:28 +0000 (08:26 -0700)
qed_db_recovery_dp() was added in 2018 as part of
commit 36907cd5cd72 ("qed: Add doorbell overflow recovery mechanism")
but has remained unused.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://patch.msgid.link/20250414005247.341243-6-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_dev.c

index b7def3b5493762fe13c2fc5816b0117894051f08..016b575861b9ee234070d83e32f0e0a536c83318 100644 (file)
@@ -939,7 +939,6 @@ u16 qed_get_cm_pq_idx_ofld_mtc(struct qed_hwfn *p_hwfn, u8 tc);
 u16 qed_get_cm_pq_idx_llt_mtc(struct qed_hwfn *p_hwfn, u8 tc);
 
 /* doorbell recovery mechanism */
-void qed_db_recovery_dp(struct qed_hwfn *p_hwfn);
 void qed_db_recovery_execute(struct qed_hwfn *p_hwfn);
 bool qed_edpm_enabled(struct qed_hwfn *p_hwfn);
 
index 86a93cac26470d9ae9feff3cf70006123892ea1e..9659ce5b071257f392153a660a7b349583ba8fd3 100644 (file)
@@ -255,25 +255,6 @@ static void qed_db_recovery_teardown(struct qed_hwfn *p_hwfn)
        p_hwfn->db_recovery_info.db_recovery_counter = 0;
 }
 
-/* Print the content of the doorbell recovery mechanism */
-void qed_db_recovery_dp(struct qed_hwfn *p_hwfn)
-{
-       struct qed_db_recovery_entry *db_entry = NULL;
-
-       DP_NOTICE(p_hwfn,
-                 "Displaying doorbell recovery database. Counter was %d\n",
-                 p_hwfn->db_recovery_info.db_recovery_counter);
-
-       /* Protect the list */
-       spin_lock_bh(&p_hwfn->db_recovery_info.lock);
-       list_for_each_entry(db_entry,
-                           &p_hwfn->db_recovery_info.list, list_entry) {
-               qed_db_recovery_dp_entry(p_hwfn, db_entry, "Printing");
-       }
-
-       spin_unlock_bh(&p_hwfn->db_recovery_info.lock);
-}
-
 /* Ring the doorbell of a single doorbell recovery entry */
 static void qed_db_recovery_ring(struct qed_hwfn *p_hwfn,
                                 struct qed_db_recovery_entry *db_entry)