The branch stable/14 has been updated by zlei:

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

commit 65b07ecacc58b69a32d6421caa138daead009eaf
Author:     Zhenlei Huang <[email protected]>
AuthorDate: 2025-10-13 10:12:30 +0000
Commit:     Zhenlei Huang <[email protected]>
CommitDate: 2026-01-31 18:25:02 +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
    
    (cherry picked from commit 19061a898ac809c8e9a30839b7200ff13a6eb9c0)
    (cherry picked from commit a1efb352f24f2e86c99a4ca94b64384cd991bc09)
---
 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 62b921d06aea..41530fd9a517 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