add some casts to (u_long) to shut up gcc. cleanup unused variables
This commit is contained in:
parent
dfe176302c
commit
af6a8541e4
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cgsix_sbus.c,v 1.4 1999/05/23 02:45:19 eeh Exp $ */
|
||||
/* $NetBSD: cgsix_sbus.c,v 1.5 2000/04/14 08:29:03 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -114,7 +114,6 @@ cgsixattach(parent, self, aux)
|
|||
int node, isconsole;
|
||||
char *name;
|
||||
bus_space_handle_t bh;
|
||||
extern struct tty *fbconstty;
|
||||
|
||||
/* Remember cookies for cgsix_mmap() */
|
||||
sc->sc_bustag = sa->sa_bustag;
|
||||
|
@ -142,7 +141,7 @@ cgsixattach(parent, self, aux)
|
|||
printf("%s: cannot map brooktree registers\n", self->dv_xname);
|
||||
return;
|
||||
}
|
||||
sc->sc_bt = (struct bt_regs *)bh;
|
||||
sc->sc_bt = (struct bt_regs *)(u_long)bh;
|
||||
|
||||
if (sbus_bus_map(sa->sa_bustag, sa->sa_slot,
|
||||
sa->sa_offset + CGSIX_FHC_OFFSET,
|
||||
|
@ -152,7 +151,7 @@ cgsixattach(parent, self, aux)
|
|||
printf("%s: cannot map FHC registers\n", self->dv_xname);
|
||||
return;
|
||||
}
|
||||
sc->sc_fhc = (int *)bh;
|
||||
sc->sc_fhc = (int *)(u_long)bh;
|
||||
|
||||
if (sbus_bus_map(sa->sa_bustag, sa->sa_slot,
|
||||
sa->sa_offset + CGSIX_THC_OFFSET,
|
||||
|
@ -162,7 +161,7 @@ cgsixattach(parent, self, aux)
|
|||
printf("%s: cannot map THC registers\n", self->dv_xname);
|
||||
return;
|
||||
}
|
||||
sc->sc_thc = (struct cg6_thc *)bh;
|
||||
sc->sc_thc = (struct cg6_thc *)(u_long)bh;
|
||||
|
||||
if (sbus_bus_map(sa->sa_bustag, sa->sa_slot,
|
||||
sa->sa_offset + CGSIX_TEC_OFFSET,
|
||||
|
@ -172,7 +171,7 @@ cgsixattach(parent, self, aux)
|
|||
printf("%s: cannot map TEC registers\n", self->dv_xname);
|
||||
return;
|
||||
}
|
||||
sc->sc_tec = (struct cg6_tec_xxx *)bh;
|
||||
sc->sc_tec = (struct cg6_tec_xxx *)(u_long)bh;
|
||||
|
||||
sbus_establish(&sc->sc_sd, &sc->sc_dev);
|
||||
name = getpropstring(node, "model");
|
||||
|
@ -188,7 +187,7 @@ cgsixattach(parent, self, aux)
|
|||
printf("%s: cannot map pixels\n", self->dv_xname);
|
||||
return;
|
||||
}
|
||||
sc->sc_fb.fb_pixels = (caddr_t)bh;
|
||||
sc->sc_fb.fb_pixels = (caddr_t)(u_long)bh;
|
||||
}
|
||||
|
||||
cg6attach(sc, name, isconsole, node == fbnode);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_interface.c,v 1.29 2000/04/06 13:32:49 mrg Exp $ */
|
||||
/* $NetBSD: db_interface.c,v 1.30 2000/04/14 08:29:03 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -839,6 +839,8 @@ db_dump_buf(addr, have_addr, count, modif)
|
|||
#include <uvm/uvm.h>
|
||||
|
||||
void db_uvmhistdump __P((db_expr_t, int, db_expr_t, char *));
|
||||
extern void uvmhist_dump __P((struct uvm_history *));
|
||||
extern struct uvm_history_head uvm_histories;
|
||||
|
||||
void
|
||||
db_uvmhistdump(addr, have_addr, count, modif)
|
||||
|
@ -847,8 +849,6 @@ db_uvmhistdump(addr, have_addr, count, modif)
|
|||
db_expr_t count;
|
||||
char *modif;
|
||||
{
|
||||
extern void uvmhist_dump __P((struct uvm_history *));
|
||||
extern struct uvm_history_head uvm_histories;
|
||||
|
||||
uvmhist_dump(uvm_histories.lh_first);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue