[Openvpn-devel,v1] multi: make multi_add_mbuf static

Message ID 20260925130715.9850-1-gert@greenie.muc.de
State New
Headers
Series [Openvpn-devel,v1] multi: make multi_add_mbuf static |

Commit Message

Gert Doering Sept. 25, 2026, 1:07 p.m. UTC
  From: Antonio Quartulli <antonio@mandelbit.com>

This function is used only in multi.c and can therefore be
declared as static.

Change-Id: Id999691f74d291f4b902b8ca224a12d9bc7e6046
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Acked-by: Razvan Cojocaru <razvanc@mailbox.org>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1951
---

This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1951
This mail reflects revision 1 of this Change.

Acked-by according to Gerrit (reflected above):
Razvan Cojocaru <razvanc@mailbox.org>
  

Patch

diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c
index 3e72b92..c1ceb34 100644
--- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c
@@ -2833,7 +2833,7 @@ 
  * Add a mbuf buffer to a particular
  * instance.
  */
-void
+static void
 multi_add_mbuf(struct multi_context *m, struct multi_instance *mi, struct mbuf_buffer *mb)
 {
     if (multi_output_queue_ready(m, mi))
diff --git a/src/openvpn/multi.h b/src/openvpn/multi.h
index 6cb86c7..ac6cb78f 100644
--- a/src/openvpn/multi.h
+++ b/src/openvpn/multi.h
@@ -354,8 +354,6 @@ 
 
 struct multi_instance *multi_get_queue(struct mbuf_set *ms);
 
-void multi_add_mbuf(struct multi_context *m, struct multi_instance *mi, struct mbuf_buffer *mb);
-
 void multi_ifconfig_pool_persist(struct multi_context *m, bool force);
 
 bool multi_process_signal(struct multi_context *m);