diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2025-12-04 16:29:17 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2025-12-04 16:29:17 +0000 |
| commit | 215c58a1c677aa191db9afcc1d75d7ba13426a7f (patch) | |
| tree | 45fb2c974f4450900d996d3da589b7f254cf1515 | |
| parent | 8740d7e4d183189d259163aa30179ad14c77c0c4 (diff) | |
pf: make unhandled_af() inline
Otherwise you just can't include pfvar.h without compiling pf in.
Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D54064
| -rw-r--r-- | sys/net/pfvar.h | 6 | ||||
| -rw-r--r-- | sys/netpfil/pf/pf_ioctl.c | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index ce266a267f3c..7568b83f89fd 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -571,7 +571,11 @@ extern struct sx pf_end_lock; #ifdef _KERNEL -void unhandled_af(int) __dead2; +static inline __dead2 void +unhandled_af(int af) +{ + panic("unhandled af %d", af); +} static void inline pf_addrcpy(struct pf_addr *dst, const struct pf_addr *src, sa_family_t af) diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c index 5ec67021068b..6774aaac2ecd 100644 --- a/sys/netpfil/pf/pf_ioctl.c +++ b/sys/netpfil/pf/pf_ioctl.c @@ -2521,12 +2521,6 @@ relock_DIOCKILLSTATES: return (killed); } -void -unhandled_af(int af) -{ - panic("unhandled af %d", af); -} - int pf_start(void) { |
