summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-03-16 18:17:34 +0000
committerbde <bde@FreeBSD.org>1995-03-16 18:17:34 +0000
commit289f11acb49b6dbb3081e09bf94a86f008f55814 (patch)
treee4952f18ac85eccbbd3d9b0f010098732d07fe6d /sys/kern/subr_trap.c
parent4c4945abee9eabe3a2be340ba973ae861c21a3c6 (diff)
downloadFreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.zip
FreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.tar.gz
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index f98022b..2e64edd 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.47 1995/02/10 06:43:47 davidg Exp $
+ * $Id: trap.c,v 1.48 1995/02/14 19:20:31 sos Exp $
*/
/*
@@ -56,10 +56,12 @@
#include <vm/vm_param.h>
#include <vm/pmap.h>
+#include <vm/vm_kern.h>
#include <vm/vm_map.h>
#include <vm/vm_page.h>
#include <machine/cpu.h>
+#include <machine/md_var.h>
#include <machine/psl.h>
#include <machine/reg.h>
#include <machine/trap.h>
@@ -302,8 +304,6 @@ trap(frame)
*/
#define MAYBE_DORETI_FAULT(where, whereto) \
do { \
- extern void where(void) __asm(__STRING(where)); \
- extern void whereto(void) __asm(__STRING(whereto)); \
if (frame.tf_eip == (int)where) { \
frame.tf_eip = (int)whereto; \
return; \
@@ -398,7 +398,6 @@ trap_pfault(frame, usermode)
vm_map_t map = 0;
int rv = 0;
vm_prot_t ftype;
- extern vm_map_t kernel_map;
int eva;
struct proc *p = curproc;
OpenPOWER on IntegriCloud