git: 278db4ba3c49 - stable/13 - cxgbei: Move some function prototypes to cxgbei.h.

John Baldwin jhb at FreeBSD.org
Mon Apr 26 19:03:54 UTC 2021


The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=278db4ba3c49ce8e08c5062d3610aff5bec20753

commit 278db4ba3c49ce8e08c5062d3610aff5bec20753
Author:     John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-03-22 16:58:54 +0000
Commit:     John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-04-26 19:01:47 +0000

    cxgbei: Move some function prototypes to cxgbei.h.
    
    Sponsored by:   Chelsio Communications
    
    (cherry picked from commit 45eed2331e8f796a6c315374d85a9485a29e2536)
---
 sys/dev/cxgbe/cxgbei/cxgbei.c     | 5 -----
 sys/dev/cxgbe/cxgbei/cxgbei.h     | 4 ++++
 sys/dev/cxgbe/cxgbei/icl_cxgbei.c | 4 ----
 3 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/sys/dev/cxgbe/cxgbei/cxgbei.c b/sys/dev/cxgbe/cxgbei/cxgbei.c
index fb5843b0b51a..4acdc726e75c 100644
--- a/sys/dev/cxgbe/cxgbei/cxgbei.c
+++ b/sys/dev/cxgbe/cxgbei/cxgbei.c
@@ -96,11 +96,6 @@ static int worker_thread_count;
 static struct cxgbei_worker_thread_softc *cwt_softc;
 static struct proc *cxgbei_proc;
 
-/* XXXNP some header instead. */
-struct icl_pdu *icl_cxgbei_new_pdu(int);
-void icl_cxgbei_new_pdu_set_conn(struct icl_pdu *, struct icl_conn *);
-void icl_cxgbei_conn_pdu_free(struct icl_conn *, struct icl_pdu *);
-
 static void
 free_ci_counters(struct cxgbei_data *ci)
 {
diff --git a/sys/dev/cxgbe/cxgbei/cxgbei.h b/sys/dev/cxgbe/cxgbei/cxgbei.h
index 798a1cf49665..b0369b974136 100644
--- a/sys/dev/cxgbe/cxgbei/cxgbei.h
+++ b/sys/dev/cxgbe/cxgbei/cxgbei.h
@@ -127,4 +127,8 @@ u_int cxgbei_select_worker_thread(struct icl_cxgbei_conn *);
 /* icl_cxgbei.c */
 int icl_cxgbei_mod_load(void);
 int icl_cxgbei_mod_unload(void);
+struct icl_pdu *icl_cxgbei_new_pdu(int);
+void icl_cxgbei_new_pdu_set_conn(struct icl_pdu *, struct icl_conn *);
+void icl_cxgbei_conn_pdu_free(struct icl_conn *, struct icl_pdu *);
+
 #endif
diff --git a/sys/dev/cxgbe/cxgbei/icl_cxgbei.c b/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
index 5588d3cb9511..6b25568e112b 100644
--- a/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
+++ b/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
@@ -124,11 +124,7 @@ static volatile u_int icl_cxgbei_ncons;
 #define ICL_CONN_LOCK_ASSERT(X)		mtx_assert(X->ic_lock, MA_OWNED)
 #define ICL_CONN_LOCK_ASSERT_NOT(X)	mtx_assert(X->ic_lock, MA_NOTOWNED)
 
-struct icl_pdu *icl_cxgbei_new_pdu(int);
-void icl_cxgbei_new_pdu_set_conn(struct icl_pdu *, struct icl_conn *);
-
 static icl_conn_new_pdu_t	icl_cxgbei_conn_new_pdu;
-icl_conn_pdu_free_t	icl_cxgbei_conn_pdu_free;
 static icl_conn_pdu_data_segment_length_t
 				    icl_cxgbei_conn_pdu_data_segment_length;
 static icl_conn_pdu_append_data_t	icl_cxgbei_conn_pdu_append_data;


More information about the dev-commits-src-all mailing list