Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2024 17:01:15 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 9830fed0de06 - stable/13 - sctp: make sctp_free_ifn() static
Message-ID:  <202410311701.49VH1F6B085083@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=9830fed0de06354926a837d1ab368c85333d5f96

commit 9830fed0de06354926a837d1ab368c85333d5f96
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2024-10-10 08:42:35 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2024-10-31 17:00:52 +0000

    sctp: make sctp_free_ifn() static
    
    It is not used outside of the file.
    No functional change intended.
    
    (cherry picked from commit e1a09d1e9df30347c279604191a04ce2ef20bf0c)
---
 sys/netinet/sctp_pcb.c | 2 +-
 sys/netinet/sctp_pcb.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index 489da8b1a5ed..2cc91d8afe81 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -239,7 +239,7 @@ sctp_free_vrf(struct sctp_vrf *vrf)
 	}
 }
 
-void
+static void
 sctp_free_ifn(struct sctp_ifn *sctp_ifnp)
 {
 	if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(&sctp_ifnp->refcount)) {
diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h
index ae062c553a57..51d5a2bad239 100644
--- a/sys/netinet/sctp_pcb.h
+++ b/sys/netinet/sctp_pcb.h
@@ -507,7 +507,6 @@ sctp_add_addr_to_vrf(uint32_t vrfid,
 
 void sctp_update_ifn_mtu(uint32_t ifn_index, uint32_t mtu);
 
-void sctp_free_ifn(struct sctp_ifn *sctp_ifnp);
 void sctp_free_ifa(struct sctp_ifa *sctp_ifap);
 
 void



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