From 448d152ae436efdcf2e8ae3b65accd73dc60161f Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 7 Oct 2000 05:42:43 +0000 Subject: [PATCH] Fix arguments to kthread_create (submitted by takawata@freebsd.org). Remove unnecessary includes --- sys/dev/pcic/i82365.c | 5 ++--- sys/dev/pcic/i82365var.h | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/pcic/i82365.c b/sys/dev/pcic/i82365.c index dd36c3ac176..1abdd7b54d5 100644 --- a/sys/dev/pcic/i82365.c +++ b/sys/dev/pcic/i82365.c @@ -45,10 +45,9 @@ #include -#include #include +#include #include -#include /* We shouldn't need to include the following, but sadly we do for now */ /* XXX */ @@ -486,7 +485,7 @@ pcic_create_event_thread(void *arg) } if (kthread_create(pcic_event_thread, h, &h->event_thread, - "%s,%s", device_get_name(h->sc->dev), cs)) { + RFTHREAD, "%s,%s", device_get_name(h->sc->dev), cs)) { device_printf(h->sc->dev, "cannot create event thread for sock 0x%02x\n", h->sock); panic("pcic_create_event_thread"); diff --git a/sys/dev/pcic/i82365var.h b/sys/dev/pcic/i82365var.h index af140754116..249398e4184 100644 --- a/sys/dev/pcic/i82365var.h +++ b/sys/dev/pcic/i82365var.h @@ -45,6 +45,8 @@ struct pcic_event { #define PCIC_EVENT_INSERTION 0 #define PCIC_EVENT_REMOVAL 1 +struct proc; + struct pcic_handle { struct pcic_softc *sc; device_t dev;