Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2022 17:55:12 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7db54446c60e - main - sockbufs: make sbrelease_internal() private
Message-ID:  <202205091755.249HtCrm061226@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205091755.249HtCrm061226>