summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-10-07 05:42:43 +0000
committerimp <imp@FreeBSD.org>2000-10-07 05:42:43 +0000
commit6830d0499df990ae08469ceac484d33526212d09 (patch)
treed3019a909cc87effb793fa5691349d24915f599b /sys
parent44c3d480b472d6936e2fdf0b16c99e14a757266b (diff)
downloadFreeBSD-src-6830d0499df990ae08469ceac484d33526212d09.zip
FreeBSD-src-6830d0499df990ae08469ceac484d33526212d09.tar.gz
Fix arguments to kthread_create (submitted by takawata@freebsd.org).
Remove unnecessary includes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pcic/i82365.c5
-rw-r--r--sys/dev/pcic/i82365var.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pcic/i82365.c b/sys/dev/pcic/i82365.c
index dd36c3a..1abdd7b 100644
--- a/sys/dev/pcic/i82365.c
+++ b/sys/dev/pcic/i82365.c
@@ -45,10 +45,9 @@
#include <machine/clock.h>
-#include <sys/proc.h>
#include <sys/wait.h>
+#include <sys/unistd.h>
#include <sys/kthread.h>
-#include <vm/vm.h>
/* 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 af14075..249398e 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;
OpenPOWER on IntegriCloud