]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
qed: Remove unused qed_ptt_invalidate
authorDr. David Alan Gilbert <linux@treblig.org>
Mon, 14 Apr 2025 00:52:45 +0000 (01:52 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:26:27 +0000 (08:26 -0700)
qed_ptt_invalidate() was added in 2015 as part of
commit fe56b9e6a8d9 ("qed: Add module with basic common support")
but has remained unused.

Remove it.

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

index 9e5f0dbc8a07654fe1449c08e7eecade298770d9..9907973399dc407ab874911222f0351c62f60198 100644 (file)
@@ -69,17 +69,6 @@ int qed_ptt_pool_alloc(struct qed_hwfn *p_hwfn)
        return 0;
 }
 
-void qed_ptt_invalidate(struct qed_hwfn *p_hwfn)
-{
-       struct qed_ptt *p_ptt;
-       int i;
-
-       for (i = 0; i < PXP_EXTERNAL_BAR_PF_WINDOW_NUM; i++) {
-               p_ptt = &p_hwfn->p_ptt_pool->ptts[i];
-               p_ptt->pxp.offset = QED_BAR_INVALID_OFFSET;
-       }
-}
-
 void qed_ptt_pool_free(struct qed_hwfn *p_hwfn)
 {
        kfree(p_hwfn->p_ptt_pool);
index e535983ce21bba380024b76d3f1ecd280475c5c9..3c98f58a184fa9690e8e988e73089fcb3489f2ac 100644 (file)
@@ -61,15 +61,6 @@ enum _dmae_cmd_crc_mask {
  */
 void qed_gtt_init(struct qed_hwfn *p_hwfn);
 
-/**
- * qed_ptt_invalidate(): Forces all ptt entries to be re-configured
- *
- * @p_hwfn: HW device data.
- *
- * Return: Void.
- */
-void qed_ptt_invalidate(struct qed_hwfn *p_hwfn);
-
 /**
  * qed_ptt_pool_alloc(): Allocate and initialize PTT pool.
  *