The branch main has been updated by zlei:

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

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

    xen: Use proper prototype for SYSINIT functions
    
    The only possible return value of function xen_intr_init() is 0. Make
    it return void to match the prototype of SYSINIT.
    
    MFC after:      1 week
---
 sys/dev/xen/bus/xen_intr.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sys/dev/xen/bus/xen_intr.c b/sys/dev/xen/bus/xen_intr.c
index cb30b6efa484..2b5fa8fb7cd1 100644
--- a/sys/dev/xen/bus/xen_intr.c
+++ b/sys/dev/xen/bus/xen_intr.c
@@ -460,7 +460,7 @@ xen_intr_handle_upcall(void *unused __unused)
        return (FILTER_HANDLED);
 }
 
-static int
+static void
 xen_intr_init(void *dummy __unused)
 {
        shared_info_t *s = HYPERVISOR_shared_info;
@@ -468,7 +468,7 @@ xen_intr_init(void *dummy __unused)
        int i;
 
        if (!xen_domain())
-               return (0);
+               return;
 
        _Static_assert(is_valid_evtchn(0),
            "is_valid_evtchn(0) fails (unused by Xen, but valid by interface");
@@ -502,8 +502,6 @@ xen_intr_init(void *dummy __unused)
 
        if (bootverbose)
                printf("Xen interrupt system initialized\n");
-
-       return (0);
 }
 SYSINIT(xen_intr_init, SI_SUB_INTR, SI_ORDER_SECOND, xen_intr_init, NULL);
 

Reply via email to