git: 8be18c2d5a63 - main - sys/net: fix several sysinit_cfunc_t signature mismatches
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Jan 2025 18:10:39 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=8be18c2d5a63859c83aaceb66377e3c9820bfe48
commit 8be18c2d5a63859c83aaceb66377e3c9820bfe48
Author: SHENGYI HONG <aokblast@FreeBSD.org>
AuthorDate: 2025-01-16 17:49:04 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-01-16 18:10:09 +0000
sys/net: fix several sysinit_cfunc_t signature mismatches
Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D48490
---
sys/net/dummymbuf.c | 4 ++--
sys/net/if_ethersubr.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys/net/dummymbuf.c b/sys/net/dummymbuf.c
index d73566759ed3..ff566cfb87c3 100644
--- a/sys/net/dummymbuf.c
+++ b/sys/net/dummymbuf.c
@@ -437,7 +437,7 @@ dmb_pfil_uninit(void)
}
static void
-vnet_dmb_init(void *unused __unused)
+vnet_dmb_init(const void *unused __unused)
{
sx_init(&V_dmb_rules_lock, "dummymbuf rules");
V_dmb_hits = counter_u64_alloc(M_WAITOK);
@@ -447,7 +447,7 @@ VNET_SYSINIT(vnet_dmb_init, SI_SUB_PROTO_PFIL, SI_ORDER_ANY,
vnet_dmb_init, NULL);
static void
-vnet_dmb_uninit(void *unused __unused)
+vnet_dmb_uninit(const void *unused __unused)
{
dmb_pfil_uninit();
counter_u64_free(V_dmb_hits);
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 6cd5cefa9609..ddaa94414ca5 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -759,7 +759,7 @@ ether_init(__unused void *arg)
SYSINIT(ether, SI_SUB_INIT_IF, SI_ORDER_ANY, ether_init, NULL);
static void
-vnet_ether_init(__unused void *arg)
+vnet_ether_init(const __unused void *arg)
{
struct pfil_head_args args;
@@ -778,7 +778,7 @@ VNET_SYSINIT(vnet_ether_init, SI_SUB_PROTO_IF, SI_ORDER_ANY,
#ifdef VIMAGE
static void
-vnet_ether_pfil_destroy(__unused void *arg)
+vnet_ether_pfil_destroy(const __unused void *arg)
{
pfil_head_unregister(V_link_pfil_head);