The branch main has been updated by zlei:

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

commit dd256c3fa738b6941f58355c077224c9a227b169
Author:     Zhenlei Huang <[email protected]>
AuthorDate: 2025-10-13 10:12:29 +0000
Commit:     Zhenlei Huang <[email protected]>
CommitDate: 2025-10-13 10:12:29 +0000

    nvme: Use proper prototype for SYSINIT functions
    
    MFC after:      1 week
---
 sys/dev/nvme/nvme.c     | 4 ++--
 sys/dev/nvme/nvme_sim.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/dev/nvme/nvme.c b/sys/dev/nvme/nvme.c
index ead91f0d01fe..d119f9877aaa 100644
--- a/sys/dev/nvme/nvme.c
+++ b/sys/dev/nvme/nvme.c
@@ -51,7 +51,7 @@ int32_t               nvme_retry_count;
 MALLOC_DEFINE(M_NVME, "nvme", "nvme(4) memory allocations");
 
 static void
-nvme_init(void)
+nvme_init(void *dummy __unused)
 {
        uint32_t        i;
 
@@ -62,7 +62,7 @@ nvme_init(void)
 SYSINIT(nvme_register, SI_SUB_DRIVERS, SI_ORDER_SECOND, nvme_init, NULL);
 
 static void
-nvme_uninit(void)
+nvme_uninit(void *dummy __unused)
 {
 }
 
diff --git a/sys/dev/nvme/nvme_sim.c b/sys/dev/nvme/nvme_sim.c
index a06774a64761..7693aa6d54d3 100644
--- a/sys/dev/nvme/nvme_sim.c
+++ b/sys/dev/nvme/nvme_sim.c
@@ -391,7 +391,7 @@ nvme_sim_controller_fail(void *ctrlr_arg)
 struct nvme_consumer *consumer_cookie;
 
 static void
-nvme_sim_init(void)
+nvme_sim_init(void *dummy __unused)
 {
        if (nvme_use_nvd)
                return;
@@ -404,7 +404,7 @@ SYSINIT(nvme_sim_register, SI_SUB_DRIVERS, SI_ORDER_ANY,
     nvme_sim_init, NULL);
 
 static void
-nvme_sim_uninit(void)
+nvme_sim_uninit(void *dummy __unused)
 {
        if (nvme_use_nvd)
                return;

Reply via email to