diff options
| author | Zhenlei Huang <zlei@FreeBSD.org> | 2025-10-13 10:12:30 +0000 |
|---|---|---|
| committer | Zhenlei Huang <zlei@FreeBSD.org> | 2025-10-13 10:12:30 +0000 |
| commit | 19061a898ac809c8e9a30839b7200ff13a6eb9c0 (patch) | |
| tree | 88110296c3def4743d8a26ec977673e33fd3e292 | |
| parent | ef56b9188937eec1ceef458d02c71c6b890b398a (diff) | |
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
| -rw-r--r-- | sys/dev/xen/bus/xen_intr.c | 6 |
1 files 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); |
