]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
IB/hfi1: Remove unused sc_drop and sdma_all_idle
authorDr. David Alan Gilbert <linux@treblig.org>
Mon, 5 May 2025 20:54:19 +0000 (21:54 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 6 May 2025 17:30:13 +0000 (14:30 -0300)
sc_drop() and sdma_all_idle() were both added in 2015's commit
7724105686e7 ("IB/hfi1: add driver files") but have remained unused.

Remove them.

Link: https://patch.msgid.link/r/20250505205419.88131-1-linux@treblig.org
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hfi1/pio.c
drivers/infiniband/hw/hfi1/pio.h
drivers/infiniband/hw/hfi1/sdma.c
drivers/infiniband/hw/hfi1/sdma.h

index 5a91cbda4aee6f769385d6a4eab9aa191d0e44d4..764286da2ce8cb7913706f41dbc65883e7bd8ab7 100644 (file)
@@ -1361,16 +1361,6 @@ void sc_flush(struct send_context *sc)
        sc_wait_for_packet_egress(sc, 1);
 }
 
-/* drop all packets on the context, no waiting until they are sent */
-void sc_drop(struct send_context *sc)
-{
-       if (!sc)
-               return;
-
-       dd_dev_info(sc->dd, "%s: context %u(%u) - not implemented\n",
-                   __func__, sc->sw_index, sc->hw_context);
-}
-
 /*
  * Start the software reaction to a context halt or SPC freeze:
  *     - mark the context as halted or frozen
index d07cc6ea7c637f5b000a0fa6059e09a86d7e58a5..ab0f9a3a8d12b4ef98c760fd3abe042a5afd536c 100644 (file)
@@ -246,7 +246,6 @@ void sc_disable(struct send_context *sc);
 int sc_restart(struct send_context *sc);
 void sc_return_credits(struct send_context *sc);
 void sc_flush(struct send_context *sc);
-void sc_drop(struct send_context *sc);
 void sc_stop(struct send_context *sc, int bit);
 struct pio_buf *sc_buffer_alloc(struct send_context *sc, u32 dw_len,
                                pio_release_cb cb, void *arg);
index 0d2b39b7c8b5fc9f7d501954900668959303bba2..16a749d16ee954ccc2a09f870d26ceba295e1eb7 100644 (file)
@@ -1520,24 +1520,6 @@ void sdma_all_running(struct hfi1_devdata *dd)
        }
 }
 
-/**
- * sdma_all_idle() - called when the link goes down
- * @dd: hfi1_devdata
- *
- * This routine moves all engines to the idle state.
- */
-void sdma_all_idle(struct hfi1_devdata *dd)
-{
-       struct sdma_engine *sde;
-       unsigned int i;
-
-       /* idle all engines */
-       for (i = 0; i < dd->num_sdma; ++i) {
-               sde = &dd->per_sdma[i];
-               sdma_process_event(sde, sdma_event_e70_go_idle);
-       }
-}
-
 /**
  * sdma_start() - called to kick off state processing for all engines
  * @dd: hfi1_devdata
index d77246b48434fc8284df20a485c59aa4a54eb318..91dfd5d0c419a4afc5b850109db0fb80305f8a5b 100644 (file)
@@ -373,7 +373,6 @@ void sdma_start(struct hfi1_devdata *dd);
 void sdma_exit(struct hfi1_devdata *dd);
 void sdma_clean(struct hfi1_devdata *dd, size_t num_engines);
 void sdma_all_running(struct hfi1_devdata *dd);
-void sdma_all_idle(struct hfi1_devdata *dd);
 void sdma_freeze_notify(struct hfi1_devdata *dd, int go_idle);
 void sdma_freeze(struct hfi1_devdata *dd);
 void sdma_unfreeze(struct hfi1_devdata *dd);