Remove truly unneeded includes (not included indirectly).
authormiod <miod@openbsd.org>
Fri, 29 Mar 2024 21:26:38 +0000 (21:26 +0000)
committermiod <miod@openbsd.org>
Fri, 29 Mar 2024 21:26:38 +0000 (21:26 +0000)
ok claudio@ kettenis@

sys/arch/sparc64/sparc64/clock.c
sys/arch/sparc64/sparc64/cpu.c
sys/arch/sparc64/sparc64/machdep.c
sys/arch/sparc64/sparc64/pmap.c

index c5cf142..1cab29f 100644 (file)
@@ -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 $ */
 
 /*
 #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>
index 0bd8f2c..3d504aa 100644 (file)
@@ -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>
index b7d6394..ddd1c5c 100644 (file)
@@ -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>
 #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>
index b03310c..0b9082b 100644 (file)
@@ -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>
 
 #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 */