summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-03-29 21:26:39 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-03-29 21:26:39 +0000
commitc8d7aaf1fa952e1206a3404012ff8b4d91cfbe2d (patch)
treed87f953aaaa38998fa1ddab2f90b69a3454fbfaf /sys
parentdeefbba8ffdf466d76e5f9a6f848d463d66ba011 (diff)
Remove truly unneeded includes (not included indirectly).
ok claudio@ kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/sparc64/clock.c8
-rw-r--r--sys/arch/sparc64/sparc64/cpu.c3
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c6
-rw-r--r--sys/arch/sparc64/sparc64/pmap.c10
4 files changed, 4 insertions, 23 deletions
diff --git a/sys/arch/sparc64/sparc64/clock.c b/sys/arch/sparc64/sparc64/clock.c
index c5cf142fdba..1cab29fa0bf 100644
--- a/sys/arch/sparc64/sparc64/clock.c
+++ b/sys/arch/sparc64/sparc64/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.84 2024/03/29 21:18:19 miod Exp $ */
+/* $OpenBSD: clock.c,v 1.85 2024/03/29 21:26:38 miod Exp $ */
/* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */
/*
@@ -66,14 +66,9 @@
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/device.h>
-#include <sys/proc.h>
-#include <sys/resourcevar.h>
#include <sys/malloc.h>
#include <sys/systm.h>
#include <sys/clockintr.h>
-#ifdef GPROF
-#include <sys/gmon.h>
-#endif
#include <sys/sched.h>
#include <sys/stdint.h>
#include <sys/timetc.h>
@@ -87,7 +82,6 @@
#include <dev/clock_subr.h>
#include <dev/ic/mk48txxreg.h>
-#include <sparc64/sparc64/intreg.h>
#include <sparc64/dev/iommureg.h>
#include <sparc64/dev/sbusreg.h>
#include <dev/sbus/sbusvar.h>
diff --git a/sys/arch/sparc64/sparc64/cpu.c b/sys/arch/sparc64/sparc64/cpu.c
index 0bd8f2c23c7..3d504aa93a2 100644
--- a/sys/arch/sparc64/sparc64/cpu.c
+++ b/sys/arch/sparc64/sparc64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.76 2024/03/29 21:11:32 miod Exp $ */
+/* $OpenBSD: cpu.c,v 1.77 2024/03/29 21:26:38 miod Exp $ */
/* $NetBSD: cpu.c,v 1.13 2001/05/26 21:27:15 chs Exp $ */
/*
@@ -63,7 +63,6 @@
#include <machine/autoconf.h>
#include <machine/cpu.h>
#include <machine/reg.h>
-#include <machine/trap.h>
#include <machine/hypervisor.h>
#include <machine/openfirm.h>
#include <machine/pmap.h>
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index b7d63945bff..ddd1c5c72f3 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.213 2024/03/29 21:17:13 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.214 2024/03/29 21:26:38 miod Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -72,7 +72,6 @@
*/
#include <sys/param.h>
-#include <sys/extent.h>
#include <sys/signal.h>
#include <sys/signalvar.h>
#include <sys/proc.h>
@@ -86,18 +85,15 @@
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/mount.h>
-#include <sys/msgbuf.h>
#include <sys/syscallargs.h>
#include <sys/exec.h>
#include <net/if.h>
-#include <uvm/uvm.h>
#include <sys/sysctl.h>
#include <sys/exec_elf.h>
#define _SPARC_BUS_DMA_PRIVATE
-#include <machine/autoconf.h>
#include <machine/bus.h>
#include <machine/frame.h>
#include <machine/cpu.h>
diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c
index b03310c0a5f..0b9082b4e6d 100644
--- a/sys/arch/sparc64/sparc64/pmap.c
+++ b/sys/arch/sparc64/sparc64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.114 2024/03/29 21:17:13 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.115 2024/03/29 21:26:38 miod Exp $ */
/* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */
/*
*
@@ -28,7 +28,6 @@
#include <sys/atomic.h>
#include <sys/param.h>
-#include <sys/malloc.h>
#include <sys/queue.h>
#include <sys/systm.h>
#include <sys/proc.h>
@@ -51,16 +50,9 @@
#ifdef DDB
#include <machine/db_machdep.h>
-#include <ddb/db_command.h>
-#include <ddb/db_sym.h>
-#include <ddb/db_variables.h>
-#include <ddb/db_extern.h>
-#include <ddb/db_access.h>
#include <ddb/db_output.h>
-#define db_enter() __asm volatile("ta 1; nop");
#else
#define db_enter()
-#define db_printf printf
#endif
#define MEG (1<<20) /* 1MB */