The branch main has been updated by glebius:

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

commit a68e3a8ae8401fe3ba6c0a85bbd3de87bd2e36f2
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2026-03-11 18:17:57 +0000
Commit:     Gleb Smirnoff <[email protected]>
CommitDate: 2026-03-12 16:37:52 +0000

    systm.h: don't declare socket and inpcb globally
---
 sys/net/pfvar.h | 1 +
 sys/sys/systm.h | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 21302b70552b..87ed701f66a7 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -2853,6 +2853,7 @@ extern void                        pf_addrcpy(struct 
pf_addr *, const struct pf_addr *,
                                    sa_family_t);
 void                           pf_free_rule(struct pf_krule *);
 
+struct inpcb;
 int    pf_test_eth(int, int, struct ifnet *, struct mbuf **, struct inpcb *);
 int    pf_scan_sctp(struct pf_pdesc *);
 #if defined(INET) || defined(INET6)
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 1c96d99ff98f..7f655b48ba08 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -127,12 +127,10 @@ extern int unmapped_buf_allowed;
  * General function declarations.
  */
 
-struct inpcb;
 struct lock_object;
 struct malloc_type;
 struct mtx;
 struct proc;
-struct socket;
 struct thread;
 struct tty;
 struct ucred;

Reply via email to