diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-08-27 10:06:53 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-08-27 10:06:53 +0200 |
commit | f2124b600b9b0bfea5dc8b22daa62c887b93976b (patch) | |
tree | 642cf59601318cad314eb09e8d36e4d87c8311a6 | |
parent | kern_intr.c: Disable unused functions (diff) | |
download | rtems-libbsd-f2124b600b9b0bfea5dc8b22daa62c887b93976b.tar.bz2 |
pf_ioctl.c: Disable superfluous unload support
-rw-r--r-- | freebsd/sys/netpfil/pf/pf_ioctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sys/netpfil/pf/pf_ioctl.c b/freebsd/sys/netpfil/pf/pf_ioctl.c index 855ef699..0c4c412e 100644 --- a/freebsd/sys/netpfil/pf/pf_ioctl.c +++ b/freebsd/sys/netpfil/pf/pf_ioctl.c @@ -4361,6 +4361,7 @@ pf_load(void) return (0); } +#ifndef __rtems__ static void pf_unload_vnet(void) { @@ -4417,6 +4418,7 @@ pf_unload_vnet(void) for (int i = 0; i < SCNT_MAX; i++) counter_u64_free(V_pf_status.scounters[i]); } +#endif /* __rtems__ */ static void pf_unload(void) @@ -4449,6 +4451,7 @@ vnet_pf_init(void *unused __unused) VNET_SYSINIT(vnet_pf_init, SI_SUB_PROTO_FIREWALL, SI_ORDER_THIRD, vnet_pf_init, NULL); +#ifndef __rtems__ static void vnet_pf_uninit(const void *unused __unused) { @@ -4458,6 +4461,7 @@ vnet_pf_uninit(const void *unused __unused) SYSUNINIT(pf_unload, SI_SUB_PROTO_FIREWALL, SI_ORDER_SECOND, pf_unload, NULL); VNET_SYSUNINIT(vnet_pf_uninit, SI_SUB_PROTO_FIREWALL, SI_ORDER_THIRD, vnet_pf_uninit, NULL); +#endif /* __rtems__ */ static int |