Page MenuHomeFreeBSD

D31188.diff
No OneTemporary

D31188.diff

diff --git a/sys/x86/xen/xen_intr.c b/sys/x86/xen/xen_intr.c
--- a/sys/x86/xen/xen_intr.c
+++ b/sys/x86/xen/xen_intr.c
@@ -260,7 +260,7 @@
* object or NULL.
*/
static struct xenisrc *
-xen_intr_alloc_isrc(enum evtchn_type type)
+xen_intr_alloc_isrc(void)
{
static int warned;
struct xenisrc *isrc;
@@ -279,7 +279,6 @@
KASSERT(isrc->xi_arch.intsrc.is_handlers == 0,
("Free evtchn still has handlers"));
- isrc->xi_type = type;
return (isrc);
}
@@ -302,7 +301,6 @@
isrc = malloc(sizeof(*isrc), M_XENINTR, M_WAITOK | M_ZERO);
isrc->xi_arch.intsrc.is_pic = &xen_intr_pic;
isrc->xi_arch.vector = vector;
- isrc->xi_type = type;
error = intr_register_source(&isrc->xi_arch.intsrc);
if (error != 0)
panic("%s(): failed registering interrupt %u, error=%d\n",
@@ -394,11 +392,12 @@
}
*port_handlep = NULL;
- isrc = xen_intr_alloc_isrc(type);
+ isrc = xen_intr_alloc_isrc();
if (isrc == NULL)
return (ENOSPC);
isrc->xi_cookie = NULL;
+ isrc->xi_type = type;
isrc->xi_port = local_port;
isrc->xi_close = false;
isrc->xi_cpu = 0;

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 5:10 AM (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14653505
Default Alt Text
D31188.diff (1 KB)

Event Timeline