Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/x68k Remove some redundant decls.
details: https://anonhg.NetBSD.org/src/rev/22dd51051c5d
branches: trunk
changeset: 504071:22dd51051c5d
user: minoura <minoura%NetBSD.org@localhost>
date: Wed Feb 21 05:53:35 2001 +0000
description:
Remove some redundant decls.
Fix some nested decls.
diffstat:
sys/arch/x68k/x68k/autoconf.c | 5 +----
sys/arch/x68k/x68k/bus.c | 5 +----
sys/arch/x68k/x68k/machdep.c | 3 +--
sys/arch/x68k/x68k/mem.c | 4 ++--
sys/arch/x68k/x68k/pmap.c | 4 ++--
5 files changed, 7 insertions(+), 14 deletions(-)
diffs (119 lines):
diff -r 15b31bdad11f -r 22dd51051c5d sys/arch/x68k/x68k/autoconf.c
--- a/sys/arch/x68k/x68k/autoconf.c Wed Feb 21 05:45:11 2001 +0000
+++ b/sys/arch/x68k/x68k/autoconf.c Wed Feb 21 05:53:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.24 2000/06/01 15:38:27 matt Exp $ */
+/* $NetBSD: autoconf.c,v 1.25 2001/02/21 05:53:35 minoura Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@@ -72,8 +72,6 @@
void
cpu_configure()
{
- extern int x68k_realconfig;
-
x68k_realconfig = 1;
if (config_rootfound("mainbus", "mainbus") == NULL)
@@ -118,7 +116,6 @@
{
struct device temp;
struct cfdata *cf;
- extern int x68k_realconfig;
if (x68k_realconfig)
return(config_found(pdp, auxp, pfn) != NULL);
diff -r 15b31bdad11f -r 22dd51051c5d sys/arch/x68k/x68k/bus.c
--- a/sys/arch/x68k/x68k/bus.c Wed Feb 21 05:45:11 2001 +0000
+++ b/sys/arch/x68k/x68k/bus.c Wed Feb 21 05:53:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.c,v 1.10 2000/06/29 07:07:54 mrg Exp $ */
+/* $NetBSD: bus.c,v 1.11 2001/02/21 05:53:35 minoura Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -398,7 +398,6 @@
vaddr_t va;
bus_addr_t addr;
int curseg;
- extern vm_map_t kernel_map;
size = round_page(size);
@@ -434,8 +433,6 @@
caddr_t kva;
size_t size;
{
- extern vm_map_t kernel_map;
-
#ifdef DIAGNOSTIC
if ((u_long)kva & PGOFSET)
panic("x68k_bus_dmamem_unmap");
diff -r 15b31bdad11f -r 22dd51051c5d sys/arch/x68k/x68k/machdep.c
--- a/sys/arch/x68k/x68k/machdep.c Wed Feb 21 05:45:11 2001 +0000
+++ b/sys/arch/x68k/x68k/machdep.c Wed Feb 21 05:53:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.92 2001/02/20 15:53:27 minoura Exp $ */
+/* $NetBSD: machdep.c,v 1.93 2001/02/21 05:53:35 minoura Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -854,7 +854,6 @@
#endif
#ifdef MAPPEDCOPY
- extern u_int mappedcopysize;
/*
* Initialize lower bound for doing copyin/copyout using
diff -r 15b31bdad11f -r 22dd51051c5d sys/arch/x68k/x68k/mem.c
--- a/sys/arch/x68k/x68k/mem.c Wed Feb 21 05:45:11 2001 +0000
+++ b/sys/arch/x68k/x68k/mem.c Wed Feb 21 05:53:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mem.c,v 1.22 2001/01/11 14:24:04 minoura Exp $ */
+/* $NetBSD: mem.c,v 1.23 2001/02/21 05:53:35 minoura Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -56,6 +56,7 @@
#include <uvm/uvm_extern.h>
+extern caddr_t Segtabzero;
static caddr_t devzeropage;
#define mmread mmrw
@@ -173,7 +174,6 @@
* is a global zeroed page, the null segment table.
*/
if (devzeropage == NULL) {
- extern caddr_t Segtabzero;
devzeropage = Segtabzero;
}
c = min(iov->iov_len, NBPG);
diff -r 15b31bdad11f -r 22dd51051c5d sys/arch/x68k/x68k/pmap.c
--- a/sys/arch/x68k/x68k/pmap.c Wed Feb 21 05:45:11 2001 +0000
+++ b/sys/arch/x68k/x68k/pmap.c Wed Feb 21 05:53:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.57 2001/01/14 03:22:04 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.58 2001/02/21 05:53:35 minoura Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -279,6 +279,7 @@
#endif
extern caddr_t CADDR1, CADDR2;
+extern u_int8_t *intiobase;
pt_entry_t *caddr1_pte; /* PTE for CADDR1 */
pt_entry_t *caddr2_pte; /* PTE for CADDR2 */
@@ -388,7 +389,6 @@
int rv;
int npages;
int bank;
- extern u_int8_t *intiobase;
PMAP_DPRINTF(PDB_FOLLOW, ("pmap_init()\n"));
Home |
Main Index |
Thread Index |
Old Index