summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/codepatch.c4
-rw-r--r--sys/arch/amd64/amd64/db_disasm.c3
-rw-r--r--sys/arch/amd64/amd64/hibernate_machdep.c3
-rw-r--r--sys/arch/amd64/amd64/softintr.c3
-rw-r--r--sys/arch/arm/arm/db_disasm.c3
-rw-r--r--sys/arch/arm/arm/db_trace.c4
-rw-r--r--sys/arch/arm/arm/softintr.c3
-rw-r--r--sys/arch/arm64/arm64/db_disasm.c3
-rw-r--r--sys/arch/arm64/arm64/db_trace.c3
-rw-r--r--sys/arch/arm64/arm64/disasm.c3
-rw-r--r--sys/arch/arm64/arm64/machdep.c3
-rw-r--r--sys/arch/arm64/arm64/softintr.c3
-rw-r--r--sys/arch/i386/i386/codepatch.c3
-rw-r--r--sys/arch/i386/i386/db_disasm.c3
-rw-r--r--sys/arch/i386/i386/db_mp.c4
-rw-r--r--sys/arch/i386/i386/hibernate_machdep.c3
-rw-r--r--sys/arch/i386/i386/softintr.c3
-rw-r--r--sys/arch/powerpc/powerpc/softintr.c3
-rw-r--r--sys/arch/powerpc/powerpc/sys_machdep.c3
-rw-r--r--sys/arch/powerpc/powerpc/vm_machdep.c3
-rw-r--r--sys/arch/sparc64/sparc64/db_disasm.c3
-rw-r--r--sys/dev/acpi/acpidebug.c9
-rw-r--r--sys/dev/pci/drm/include/asm/set_memory.h3
23 files changed, 50 insertions, 28 deletions
diff --git a/sys/arch/amd64/amd64/codepatch.c b/sys/arch/amd64/amd64/codepatch.c
index da2b2bb98a9..ec32b44119c 100644
--- a/sys/arch/amd64/amd64/codepatch.c
+++ b/sys/arch/amd64/amd64/codepatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: codepatch.c,v 1.8 2019/08/07 18:53:12 guenther Exp $ */
+/* $OpenBSD: codepatch.c,v 1.9 2020/09/11 09:27:09 mpi Exp $ */
/*
* Copyright (c) 2014-2015 Stefan Fritsch <sf@sfritsch.de>
*
@@ -16,7 +16,7 @@
*/
#include <sys/param.h>
-#include <uvm/uvm_extern.h>
+#include <sys/systm.h>
#include <machine/codepatch.h>
#include <uvm/uvm_extern.h> /* round_page */
diff --git a/sys/arch/amd64/amd64/db_disasm.c b/sys/arch/amd64/amd64/db_disasm.c
index 4a047806099..b1879e8254f 100644
--- a/sys/arch/amd64/amd64/db_disasm.c
+++ b/sys/arch/amd64/amd64/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.21 2019/11/10 10:03:33 mpi Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.22 2020/09/11 09:27:09 mpi Exp $ */
/* $NetBSD: db_disasm.c,v 1.11 1996/05/03 19:41:58 christos Exp $ */
/*
@@ -33,6 +33,7 @@
* Instruction disassembler.
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <machine/db_machdep.h>
#include <ddb/db_access.h>
diff --git a/sys/arch/amd64/amd64/hibernate_machdep.c b/sys/arch/amd64/amd64/hibernate_machdep.c
index ca442b40d10..0d2f40fc258 100644
--- a/sys/arch/amd64/amd64/hibernate_machdep.c
+++ b/sys/arch/amd64/amd64/hibernate_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hibernate_machdep.c,v 1.45 2018/07/27 21:11:31 kettenis Exp $ */
+/* $OpenBSD: hibernate_machdep.c,v 1.46 2020/09/11 09:27:09 mpi Exp $ */
/*
* Copyright (c) 2012 Mike Larkin <mlarkin@openbsd.org>
@@ -17,6 +17,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/buf.h>
#include <sys/conf.h>
#include <sys/device.h>
diff --git a/sys/arch/amd64/amd64/softintr.c b/sys/arch/amd64/amd64/softintr.c
index 5a30a9c2846..24888926528 100644
--- a/sys/arch/amd64/amd64/softintr.c
+++ b/sys/arch/amd64/amd64/softintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softintr.c,v 1.9 2015/08/28 00:03:53 deraadt Exp $ */
+/* $OpenBSD: softintr.c,v 1.10 2020/09/11 09:27:09 mpi Exp $ */
/* $NetBSD: softintr.c,v 1.1 2003/02/26 21:26:12 fvdl Exp $ */
/*-
@@ -35,6 +35,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/malloc.h>
#include <machine/intr.h>
diff --git a/sys/arch/arm/arm/db_disasm.c b/sys/arch/arm/arm/db_disasm.c
index 982137879d5..b817a07a307 100644
--- a/sys/arch/arm/arm/db_disasm.c
+++ b/sys/arch/arm/arm/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.4 2019/11/07 14:44:52 mpi Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.5 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: db_disasm.c,v 1.4 2003/07/15 00:24:38 lukem Exp $ */
/*
@@ -36,6 +36,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <machine/db_machdep.h>
#include <ddb/db_interface.h>
#include <ddb/db_sym.h>
diff --git a/sys/arch/arm/arm/db_trace.c b/sys/arch/arm/arm/db_trace.c
index 31057365a4e..2540ab4f516 100644
--- a/sys/arch/arm/arm/db_trace.c
+++ b/sys/arch/arm/arm/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.14 2019/11/07 21:54:49 patrick Exp $ */
+/* $OpenBSD: db_trace.c,v 1.15 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: db_trace.c,v 1.8 2003/01/17 22:28:48 thorpej Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/param.h>
-
+#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/user.h>
#include <arm/armreg.h>
diff --git a/sys/arch/arm/arm/softintr.c b/sys/arch/arm/arm/softintr.c
index f6f3f25b5d5..b44723c17fa 100644
--- a/sys/arch/arm/arm/softintr.c
+++ b/sys/arch/arm/arm/softintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softintr.c,v 1.9 2018/08/06 18:39:13 kettenis Exp $ */
+/* $OpenBSD: softintr.c,v 1.10 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: softintr.c,v 1.2 2003/07/15 00:24:39 lukem Exp $ */
/*
@@ -37,6 +37,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/malloc.h>
#include <uvm/uvm_extern.h>
diff --git a/sys/arch/arm64/arm64/db_disasm.c b/sys/arch/arm64/arm64/db_disasm.c
index 66cce265fbf..b5447f2b444 100644
--- a/sys/arch/arm64/arm64/db_disasm.c
+++ b/sys/arch/arm64/arm64/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.3 2020/07/25 12:26:09 tobhe Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.4 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: db_disasm.c,v 1.10 2020/07/09 23:43:41 ryo Exp $ */
/*
@@ -28,6 +28,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <machine/db_machdep.h>
#include <ddb/db_interface.h>
#include <ddb/db_sym.h>
diff --git a/sys/arch/arm64/arm64/db_trace.c b/sys/arch/arm64/arm64/db_trace.c
index a23e4f11d9b..c4cf77677cd 100644
--- a/sys/arch/arm64/arm64/db_trace.c
+++ b/sys/arch/arm64/arm64/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.11 2020/04/18 04:45:20 visa Exp $ */
+/* $OpenBSD: db_trace.c,v 1.12 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: db_trace.c,v 1.8 2003/01/17 22:28:48 thorpej Exp $ */
/*
@@ -31,6 +31,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/stacktrace.h>
diff --git a/sys/arch/arm64/arm64/disasm.c b/sys/arch/arm64/arm64/disasm.c
index b0035b53f45..ac263d48407 100644
--- a/sys/arch/arm64/arm64/disasm.c
+++ b/sys/arch/arm64/arm64/disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disasm.c,v 1.1 2020/07/25 12:26:09 tobhe Exp $ */
+/* $OpenBSD: disasm.c,v 1.2 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: disasm.c,v 1.8 2020/05/26 05:25:21 ryo Exp $ */
/*
@@ -28,6 +28,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/types.h>
#include <machine/db_machdep.h>
diff --git a/sys/arch/arm64/arm64/machdep.c b/sys/arch/arm64/arm64/machdep.c
index db37ab929f3..0b533c08d1d 100644
--- a/sys/arch/arm64/arm64/machdep.c
+++ b/sys/arch/arm64/arm64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.53 2020/06/05 23:16:24 naddy Exp $ */
+/* $OpenBSD: machdep.c,v 1.54 2020/09/11 09:27:10 mpi Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
*
@@ -16,6 +16,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/sched.h>
#include <sys/proc.h>
#include <sys/sysctl.h>
diff --git a/sys/arch/arm64/arm64/softintr.c b/sys/arch/arm64/arm64/softintr.c
index b4f0ffc0967..97cf824499b 100644
--- a/sys/arch/arm64/arm64/softintr.c
+++ b/sys/arch/arm64/arm64/softintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softintr.c,v 1.1 2016/12/17 23:38:33 patrick Exp $ */
+/* $OpenBSD: softintr.c,v 1.2 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: softintr.c,v 1.1 2003/02/26 21:26:12 fvdl Exp $ */
/*-
@@ -35,6 +35,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/malloc.h>
#include <machine/intr.h>
diff --git a/sys/arch/i386/i386/codepatch.c b/sys/arch/i386/i386/codepatch.c
index cd44bc33cec..0865c8262f8 100644
--- a/sys/arch/i386/i386/codepatch.c
+++ b/sys/arch/i386/i386/codepatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: codepatch.c,v 1.4 2017/07/10 00:59:24 mortimer Exp $ */
+/* $OpenBSD: codepatch.c,v 1.5 2020/09/11 09:27:10 mpi Exp $ */
/*
* Copyright (c) 2014-2015 Stefan Fritsch <sf@sfritsch.de>
*
@@ -16,6 +16,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <machine/codepatch.h>
#include <machine/cpu.h>
#include <uvm/uvm_extern.h>
diff --git a/sys/arch/i386/i386/db_disasm.c b/sys/arch/i386/i386/db_disasm.c
index 4484dd68790..e822088fc14 100644
--- a/sys/arch/i386/i386/db_disasm.c
+++ b/sys/arch/i386/i386/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.23 2019/11/07 14:44:53 mpi Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.24 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: db_disasm.c,v 1.11 1996/05/03 19:41:58 christos Exp $ */
/*
@@ -33,6 +33,7 @@
* Instruction disassembler.
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <machine/db_machdep.h>
#include <ddb/db_access.h>
diff --git a/sys/arch/i386/i386/db_mp.c b/sys/arch/i386/i386/db_mp.c
index efa785c2f4c..d3c576bf5b1 100644
--- a/sys/arch/i386/i386/db_mp.c
+++ b/sys/arch/i386/i386/db_mp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_mp.c,v 1.12 2019/11/06 07:34:35 mpi Exp $ */
+/* $OpenBSD: db_mp.c,v 1.13 2020/09/11 09:27:10 mpi Exp $ */
/*
* Copyright (c) 2003, 2004 Andreas Gunnarsson <andreas@openbsd.org>
@@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/types.h>
#include <sys/mutex.h>
diff --git a/sys/arch/i386/i386/hibernate_machdep.c b/sys/arch/i386/i386/hibernate_machdep.c
index 2e5b3f89c51..d303d9fd760 100644
--- a/sys/arch/i386/i386/hibernate_machdep.c
+++ b/sys/arch/i386/i386/hibernate_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hibernate_machdep.c,v 1.55 2018/07/30 14:19:12 kettenis Exp $ */
+/* $OpenBSD: hibernate_machdep.c,v 1.56 2020/09/11 09:27:10 mpi Exp $ */
/*
* Copyright (c) 2011 Mike Larkin <mlarkin@openbsd.org>
@@ -17,6 +17,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/buf.h>
#include <sys/conf.h>
#include <sys/device.h>
diff --git a/sys/arch/i386/i386/softintr.c b/sys/arch/i386/i386/softintr.c
index efa5e8b9e34..dbd4d1df8f3 100644
--- a/sys/arch/i386/i386/softintr.c
+++ b/sys/arch/i386/i386/softintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softintr.c,v 1.7 2015/09/01 06:01:26 deraadt Exp $ */
+/* $OpenBSD: softintr.c,v 1.8 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: softintr.c,v 1.1 2003/02/26 21:26:12 fvdl Exp $ */
/*-
@@ -35,6 +35,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/malloc.h>
#include <machine/intr.h>
diff --git a/sys/arch/powerpc/powerpc/softintr.c b/sys/arch/powerpc/powerpc/softintr.c
index 42ddf896362..4e4f7650425 100644
--- a/sys/arch/powerpc/powerpc/softintr.c
+++ b/sys/arch/powerpc/powerpc/softintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softintr.c,v 1.9 2017/07/25 03:46:59 visa Exp $ */
+/* $OpenBSD: softintr.c,v 1.10 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: softintr.c,v 1.2 2003/07/15 00:24:39 lukem Exp $ */
/*
@@ -37,6 +37,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mutex.h>
diff --git a/sys/arch/powerpc/powerpc/sys_machdep.c b/sys/arch/powerpc/powerpc/sys_machdep.c
index 7469aa290af..8ff2bc83f79 100644
--- a/sys/arch/powerpc/powerpc/sys_machdep.c
+++ b/sys/arch/powerpc/powerpc/sys_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_machdep.c,v 1.4 2003/10/15 02:43:09 drahn Exp $ */
+/* $OpenBSD: sys_machdep.c,v 1.5 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: sys_machdep.c,v 1.1 1996/09/30 16:34:56 ws Exp $ */
/*
@@ -33,6 +33,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
diff --git a/sys/arch/powerpc/powerpc/vm_machdep.c b/sys/arch/powerpc/powerpc/vm_machdep.c
index fc64451a15c..1f40c917991 100644
--- a/sys/arch/powerpc/powerpc/vm_machdep.c
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.49 2017/02/12 04:55:08 guenther Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.50 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $ */
/*
@@ -32,6 +32,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/exec.h>
#include <sys/pool.h>
#include <sys/proc.h>
diff --git a/sys/arch/sparc64/sparc64/db_disasm.c b/sys/arch/sparc64/sparc64/db_disasm.c
index b916eee4a66..b697ad5e163 100644
--- a/sys/arch/sparc64/sparc64/db_disasm.c
+++ b/sys/arch/sparc64/sparc64/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.8 2019/11/07 14:44:53 mpi Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.9 2020/09/11 09:27:10 mpi Exp $ */
/* $NetBSD: db_disasm.c,v 1.9 2000/08/16 11:29:42 pk Exp $ */
/*
@@ -33,6 +33,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <machine/db_machdep.h>
#include <machine/instr.h>
#include <ddb/db_sym.h>
diff --git a/sys/dev/acpi/acpidebug.c b/sys/dev/acpi/acpidebug.c
index 3f8b789bce8..17bcf1ec8a4 100644
--- a/sys/dev/acpi/acpidebug.c
+++ b/sys/dev/acpi/acpidebug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpidebug.c,v 1.31 2018/06/29 17:39:18 kettenis Exp $ */
+/* $OpenBSD: acpidebug.c,v 1.32 2020/09/11 09:27:10 mpi Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@openbsd.org>
*
@@ -15,14 +15,15 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/malloc.h>
+#include <machine/bus.h>
#include <machine/db_machdep.h>
#include <ddb/db_output.h>
#include <ddb/db_extern.h>
#include <ddb/db_lex.h>
-#include <machine/bus.h>
-#include <sys/malloc.h>
-
#include <dev/acpi/acpireg.h>
#include <dev/acpi/acpivar.h>
#include <dev/acpi/amltypes.h>
diff --git a/sys/dev/pci/drm/include/asm/set_memory.h b/sys/dev/pci/drm/include/asm/set_memory.h
index 5fced579566..9a56ad27e05 100644
--- a/sys/dev/pci/drm/include/asm/set_memory.h
+++ b/sys/dev/pci/drm/include/asm/set_memory.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: set_memory.h,v 1.2 2020/06/08 04:48:14 jsg Exp $ */
+/* $OpenBSD: set_memory.h,v 1.3 2020/09/11 09:27:10 mpi Exp $ */
/*
* Copyright (c) 2013, 2014, 2015 Mark Kettenis
*
@@ -18,6 +18,7 @@
#ifndef _ASM_SET_MEMORY_H
#define _ASM_SET_MEMORY_H
+#include <sys/systm.h>
#include <sys/atomic.h>
#include <sys/param.h> /* for PAGE_SIZE on i386 */