git: 7db54446c60e - main - sockbufs: make sbrelease_internal() private

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Mon, 09 May 2022 17:55:12 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=7db54446c60eeef7b774f9a8e8b3ddbfb086be1a

commit 7db54446c60eeef7b774f9a8e8b3ddbfb086be1a
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-05-09 17:43:01 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-05-09 17:43:01 +0000

    sockbufs: make sbrelease_internal() private
---
 sys/kern/uipc_sockbuf.c | 2 +-
 sys/sys/sockbuf.h       | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c
index 80505dd4dbd2..5ac6c79a928f 100644
--- a/sys/kern/uipc_sockbuf.c
+++ b/sys/kern/uipc_sockbuf.c
@@ -710,7 +710,7 @@ sbsetopt(struct socket *so, int cmd, u_long cc)
 /*
  * Free mbufs held by a socket, and reserved mbuf space.
  */
-void
+static void
 sbrelease_internal(struct sockbuf *sb, struct socket *so)
 {
 
diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h
index ef323bf59da7..372f04eba54c 100644
--- a/sys/sys/sockbuf.h
+++ b/sys/sys/sockbuf.h
@@ -172,7 +172,6 @@ void	sbdroprecord_locked(struct sockbuf *sb);
 void	sbflush(struct sockbuf *sb);
 void	sbflush_locked(struct sockbuf *sb);
 void	sbrelease(struct sockbuf *sb, struct socket *so);
-void	sbrelease_internal(struct sockbuf *sb, struct socket *so);
 void	sbrelease_locked(struct sockbuf *sb, struct socket *so);
 int	sbsetopt(struct socket *so, int cmd, u_long cc);
 int	sbreserve_locked(struct sockbuf *sb, u_long cc, struct socket *so,