summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-02-18 12:13:41 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-02-18 12:13:41 +0000
commit7d507c040f5f8f249c657a3d207a3bf7bdc53eec (patch)
tree698cdb0d3acaecff97ee9a8db4e6bb043b99dc71 /sys/dev
parent6c021d06f2e23c6a91445e3d65aec15fd8885ac9 (diff)
Cleanup <sys/kthread.h> and <sys/proc.h> includes.
Do not include <sys/kthread.h> where it is not needed and stop including <sys/proc.h> in it. ok visa@, anton@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/dwiic_acpi.c3
-rw-r--r--sys/dev/cardbus/cardslot.c3
-rw-r--r--sys/dev/fdt/imxesdhc.c3
-rw-r--r--sys/dev/ic/dwiic.c3
-rw-r--r--sys/dev/ic/dwiicvar.h3
-rw-r--r--sys/dev/pci/drm/i915/intel_breadcrumbs.c1
-rw-r--r--sys/dev/pci/drm/include/drm/drmP.h3
-rw-r--r--sys/dev/pci/drm/include/linux/sched.h4
-rw-r--r--sys/dev/pci/drm/scheduler/gpu_scheduler.c2
-rw-r--r--sys/dev/pci/dwiic_pci.c3
10 files changed, 9 insertions, 19 deletions
diff --git a/sys/dev/acpi/dwiic_acpi.c b/sys/dev/acpi/dwiic_acpi.c
index 9ba51c73309..928cc588e7c 100644
--- a/sys/dev/acpi/dwiic_acpi.c
+++ b/sys/dev/acpi/dwiic_acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwiic_acpi.c,v 1.12 2019/08/04 15:44:17 kettenis Exp $ */
+/* $OpenBSD: dwiic_acpi.c,v 1.13 2020/02/18 12:13:39 mpi Exp $ */
/*
* Synopsys DesignWare I2C controller
*
@@ -20,7 +20,6 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
-#include <sys/kthread.h>
#include <dev/acpi/acpireg.h>
#include <dev/acpi/acpivar.h>
diff --git a/sys/dev/cardbus/cardslot.c b/sys/dev/cardbus/cardslot.c
index 1d42d20101d..a90ca275e86 100644
--- a/sys/dev/cardbus/cardslot.c
+++ b/sys/dev/cardbus/cardslot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cardslot.c,v 1.21 2016/09/15 02:00:17 dlg Exp $ */
+/* $OpenBSD: cardslot.c,v 1.22 2020/02/18 12:13:39 mpi Exp $ */
/* $NetBSD: cardslot.c,v 1.9 2000/03/22 09:35:06 haya Exp $ */
/*
@@ -34,7 +34,6 @@
#include <sys/malloc.h>
#include <sys/kernel.h>
#include <sys/syslog.h>
-#include <sys/kthread.h>
#include <sys/pool.h>
#include <sys/task.h>
diff --git a/sys/dev/fdt/imxesdhc.c b/sys/dev/fdt/imxesdhc.c
index a6a19e999f2..1178ec7ccca 100644
--- a/sys/dev/fdt/imxesdhc.c
+++ b/sys/dev/fdt/imxesdhc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imxesdhc.c,v 1.12 2020/01/13 13:30:00 mpi Exp $ */
+/* $OpenBSD: imxesdhc.c,v 1.13 2020/02/18 12:13:39 mpi Exp $ */
/*
* Copyright (c) 2009 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -22,7 +22,6 @@
#include <sys/param.h>
#include <sys/device.h>
#include <sys/kernel.h>
-#include <sys/kthread.h>
#include <sys/malloc.h>
#include <sys/systm.h>
#include <machine/bus.h>
diff --git a/sys/dev/ic/dwiic.c b/sys/dev/ic/dwiic.c
index 5bae719330c..b6750cf5069 100644
--- a/sys/dev/ic/dwiic.c
+++ b/sys/dev/ic/dwiic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwiic.c,v 1.9 2020/01/11 20:07:40 kettenis Exp $ */
+/* $OpenBSD: dwiic.c,v 1.10 2020/02/18 12:13:39 mpi Exp $ */
/*
* Synopsys DesignWare I2C controller
*
@@ -20,7 +20,6 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
-#include <sys/kthread.h>
#include <dev/acpi/acpireg.h>
#include <dev/acpi/acpivar.h>
diff --git a/sys/dev/ic/dwiicvar.h b/sys/dev/ic/dwiicvar.h
index 1c2e3c5faf0..275e652f917 100644
--- a/sys/dev/ic/dwiicvar.h
+++ b/sys/dev/ic/dwiicvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwiicvar.h,v 1.3 2019/03/16 02:40:43 jcs Exp $ */
+/* $OpenBSD: dwiicvar.h,v 1.4 2020/02/18 12:13:39 mpi Exp $ */
/*
* Synopsys DesignWare I2C controller
*
@@ -20,7 +20,6 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
-#include <sys/kthread.h>
#include <dev/acpi/acpireg.h>
#include <dev/acpi/acpivar.h>
diff --git a/sys/dev/pci/drm/i915/intel_breadcrumbs.c b/sys/dev/pci/drm/i915/intel_breadcrumbs.c
index ee379dfe847..dbf49df0b47 100644
--- a/sys/dev/pci/drm/i915/intel_breadcrumbs.c
+++ b/sys/dev/pci/drm/i915/intel_breadcrumbs.c
@@ -28,7 +28,6 @@
#else
#include <sys/types.h>
#include <sys/param.h>
-#include <sys/kthread.h>
#endif
#include "i915_drv.h"
diff --git a/sys/dev/pci/drm/include/drm/drmP.h b/sys/dev/pci/drm/include/drm/drmP.h
index 2481d867937..fa2938653a8 100644
--- a/sys/dev/pci/drm/include/drm/drmP.h
+++ b/sys/dev/pci/drm/include/drm/drmP.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: drmP.h,v 1.5 2019/08/18 13:11:47 kettenis Exp $ */
+/* $OpenBSD: drmP.h,v 1.6 2020/02/18 12:13:39 mpi Exp $ */
/* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*-
* Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com
*/
@@ -45,7 +45,6 @@
#include <sys/pool.h>
#include <sys/kernel.h>
#include <sys/systm.h>
-#include <sys/proc.h>
#include <sys/conf.h>
#include <sys/mutex.h>
#include <sys/tree.h>
diff --git a/sys/dev/pci/drm/include/linux/sched.h b/sys/dev/pci/drm/include/linux/sched.h
index 00fa85d4294..9def4c4be27 100644
--- a/sys/dev/pci/drm/include/linux/sched.h
+++ b/sys/dev/pci/drm/include/linux/sched.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sched.h,v 1.1 2019/04/14 10:14:53 jsg Exp $ */
+/* $OpenBSD: sched.h,v 1.2 2020/02/18 12:13:40 mpi Exp $ */
/*
* Copyright (c) 2013, 2014, 2015 Mark Kettenis
*
@@ -23,7 +23,6 @@
#include <sys/kernel.h>
#include <sys/stdint.h>
#include <sys/mutex.h>
-#include <sys/proc.h>
#include <linux/wait.h>
#include <linux/hrtimer.h>
@@ -47,6 +46,7 @@ long schedule_timeout(long);
#define io_schedule_timeout(x) schedule_timeout(x)
+struct proc;
int wake_up_process(struct proc *p);
#endif
diff --git a/sys/dev/pci/drm/scheduler/gpu_scheduler.c b/sys/dev/pci/drm/scheduler/gpu_scheduler.c
index 94646a4bdd9..b9d1a98f2a9 100644
--- a/sys/dev/pci/drm/scheduler/gpu_scheduler.c
+++ b/sys/dev/pci/drm/scheduler/gpu_scheduler.c
@@ -57,8 +57,6 @@
#define CREATE_TRACE_POINTS
#include "gpu_scheduler_trace.h"
-#include <sys/kthread.h>
-
#define to_drm_sched_job(sched_job) \
container_of((sched_job), struct drm_sched_job, queue_node)
diff --git a/sys/dev/pci/dwiic_pci.c b/sys/dev/pci/dwiic_pci.c
index d685e5dcc72..90f7d584706 100644
--- a/sys/dev/pci/dwiic_pci.c
+++ b/sys/dev/pci/dwiic_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwiic_pci.c,v 1.9 2019/07/31 16:04:16 jcs Exp $ */
+/* $OpenBSD: dwiic_pci.c,v 1.10 2020/02/18 12:13:40 mpi Exp $ */
/*
* Synopsys DesignWare I2C controller
* PCI attachment
@@ -21,7 +21,6 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
-#include <sys/kthread.h>
#include <dev/pci/pcidevs.h>
#include <dev/pci/pcireg.h>