summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2010-06-26 23:24:46 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2010-06-26 23:24:46 +0000
commiteb23aac2d7eb652ee88e15b7d32db9f5f6b307b4 (patch)
tree03429ad5db3924bb64a9dc031b6ea1931ca9c8e6 /sys/arch/sh
parentb67846532dd844d067cf0399f4ba4c50503dbc14 (diff)
Don't #include <sys/user.h> into files that don't need the stuff
it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/locore_c.c3
-rw-r--r--sys/arch/sh/sh/process_machdep.c4
-rw-r--r--sys/arch/sh/sh/trap.c4
3 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/sh/sh/locore_c.c b/sys/arch/sh/sh/locore_c.c
index 0ede4c83f1c..319becc4e51 100644
--- a/sys/arch/sh/sh/locore_c.c
+++ b/sys/arch/sh/sh/locore_c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore_c.c,v 1.8 2010/04/21 03:03:26 deraadt Exp $ */
+/* $OpenBSD: locore_c.c,v 1.9 2010/06/26 23:24:44 guenther Exp $ */
/* $NetBSD: locore_c.c,v 1.13 2006/03/04 01:13:35 uwe Exp $ */
/*-
@@ -107,7 +107,6 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
-#include <sys/user.h>
#include <sys/sched.h>
#include <sys/proc.h>
diff --git a/sys/arch/sh/sh/process_machdep.c b/sys/arch/sh/sh/process_machdep.c
index e38105eade5..287ec43b087 100644
--- a/sys/arch/sh/sh/process_machdep.c
+++ b/sys/arch/sh/sh/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.3 2007/03/02 06:11:54 miod Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.4 2010/06/26 23:24:44 guenther Exp $ */
/* $NetBSD: process_machdep.c,v 1.12 2006/01/21 04:12:22 uwe Exp $ */
/*
@@ -125,11 +125,11 @@
#include <sys/time.h>
#include <sys/kernel.h>
#include <sys/proc.h>
-#include <sys/user.h>
#include <sys/vnode.h>
#include <sys/ptrace.h>
#include <machine/cpu.h>
+#include <machine/pcb.h>
#include <machine/psl.h>
#include <machine/reg.h>
diff --git a/sys/arch/sh/sh/trap.c b/sys/arch/sh/sh/trap.c
index 24e3dd76e04..18fd463da0d 100644
--- a/sys/arch/sh/sh/trap.c
+++ b/sys/arch/sh/sh/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.14 2008/10/04 19:21:50 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.15 2010/06/26 23:24:44 guenther Exp $ */
/* $NetBSD: exception.c,v 1.32 2006/09/04 23:57:52 uwe Exp $ */
/* $NetBSD: syscall.c,v 1.6 2006/03/07 07:21:50 thorpej Exp $ */
@@ -84,7 +84,6 @@
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/pool.h>
-#include <sys/user.h>
#include <sys/kernel.h>
#include <sys/signal.h>
#include <sys/syscall.h>
@@ -103,6 +102,7 @@
#include <sh/cache.h>
#include <sh/cpu.h>
#include <sh/mmu.h>
+#include <sh/pcb.h>
#include <sh/trap.h>
#include <sh/userret.h>
#ifdef SH4