Module Name: src
Committed By: jym
Date: Sun May 23 23:50:37 UTC 2010
Modified Files:
src/sys/dev/isa: i82365_isasubr.c
Log Message:
Cast the sum of iobase and iosize to long, not just iobase. Avoids size
warnings during build when bus_addr_t is 64 bits.
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/dev/isa/i82365_isasubr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/isa/i82365_isasubr.c
diff -u src/sys/dev/isa/i82365_isasubr.c:1.46 src/sys/dev/isa/i82365_isasubr.c:1.47
--- src/sys/dev/isa/i82365_isasubr.c:1.46 Mon Mar 22 22:25:26 2010
+++ src/sys/dev/isa/i82365_isasubr.c Sun May 23 23:50:37 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: i82365_isasubr.c,v 1.46 2010/03/22 22:25:26 dyoung Exp $ */
+/* $NetBSD: i82365_isasubr.c,v 1.47 2010/05/23 23:50:37 jym Exp $ */
/*
* Copyright (c) 2000 Christian E. Hopps. All rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82365_isasubr.c,v 1.46 2010/03/22 22:25:26 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82365_isasubr.c,v 1.47 2010/05/23 23:50:37 jym Exp $");
#define PCICISADEBUG
@@ -430,7 +430,7 @@
DPRINTF(("%s: bus_space_alloc range 0x%04lx-0x%04lx (probed)\n",
device_xname(&sc->dev), (long) sc->iobase,
- (long) sc->iobase + sc->iosize));
+ (long)(sc->iobase + sc->iosize)));
if (pcic_isa_alloc_iobase && pcic_isa_alloc_iosize) {
sc->iobase = pcic_isa_alloc_iobase;
@@ -438,7 +438,7 @@
DPRINTF(("%s: bus_space_alloc range 0x%04lx-0x%04lx "
"(config override)\n", device_xname(&sc->dev),
- (long) sc->iobase, (long) sc->iobase + sc->iosize));
+ (long) sc->iobase, (long)(sc->iobase + sc->iosize)));
}
}