summaryrefslogtreecommitdiffstats
path: root/sys/alpha/tc
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-05-10 15:51:23 +0000
committerpeter <peter@FreeBSD.org>1999-05-10 15:51:23 +0000
commit4e2b663a13b2990316ab0c8f581ff2e5cf12822b (patch)
tree56c3d84aa91926dddc1bdb37f84c30000a9398ab /sys/alpha/tc
parent2b57f94733a4c5e102a738d9de719bd68cacefb6 (diff)
downloadFreeBSD-src-4e2b663a13b2990316ab0c8f581ff2e5cf12822b.zip
FreeBSD-src-4e2b663a13b2990316ab0c8f581ff2e5cf12822b.tar.gz
Fix warnings (I hope)
Diffstat (limited to 'sys/alpha/tc')
-rw-r--r--sys/alpha/tc/ioasic.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/alpha/tc/ioasic.c b/sys/alpha/tc/ioasic.c
index 175f2b8..db7ae3c 100644
--- a/sys/alpha/tc/ioasic.c
+++ b/sys/alpha/tc/ioasic.c
@@ -1,4 +1,4 @@
-/* $Id: ioasic.c,v 1.1 1998/08/20 08:27:10 dfr Exp $ */
+/* $Id: ioasic.c,v 1.2 1999/05/08 21:58:48 dfr Exp $ */
/* from $NetBSD: ioasic.c,v 1.19 1998/05/27 00:18:13 thorpej Exp $ */
/*-
@@ -176,7 +176,6 @@ ioasic_attach(device_t dev)
struct ioasic_softc* sc = IOASIC_SOFTC(dev);
struct tc_attach_args *ta = device_get_ivars(dev);
device_t parent = device_get_parent(dev);
- vm_offset_t regs,va;
u_long i;
ioasic0 = dev;
@@ -244,7 +243,7 @@ static void
ioasic_print_child(device_t bus, device_t dev)
{
struct ioasic_dev *ioasic = device_get_ivars(dev);
- printf(" at %s%d, offset 0x%lx",
+ printf(" at %s%d, offset 0x%x",
device_get_name(bus), device_get_unit(bus),
ioasic->iad_offset);
}
@@ -286,7 +285,7 @@ ioasic_intr_establish(ioa, cookie, level, func, arg)
#endif
if (ioasicintrs[dev].iai_func != ioasic_intrnull)
- panic("ioasic_intr_establish: cookie %d twice", dev);
+ panic("ioasic_intr_establish: cookie %ld twice", dev);
ioasicintrs[dev].iai_func = func;
ioasicintrs[dev].iai_arg = arg;
@@ -315,7 +314,7 @@ ioasic_intr_disestablish(ioa, cookie)
#endif
if (ioasicintrs[dev].iai_func == ioasic_intrnull)
- panic("ioasic_intr_disestablish: cookie %d missing intr", dev);
+ panic("ioasic_intr_disestablish: cookie %ld missing intr", dev);
/* Enable interrupts for the device. */
for (i = 0; i < ioasic_ndevs; i++)
@@ -343,10 +342,9 @@ ioasic_intr(val)
void *val;
{
register struct ioasic_softc *sc = val;
- register int i, ifound;
+ register int ifound;
int gifound;
- u_int32_t sir, junk;
- volatile u_int32_t *sirp, *junkp;
+ volatile u_int32_t *sirp;
sirp = (volatile u_int32_t *)IOASIC_REG_INTR(sc->sc_base);
OpenPOWER on IntegriCloud