Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev add some casts to (u_long) to shut up gcc
details: https://anonhg.NetBSD.org/src/rev/8afd88430bce
branches: trunk
changeset: 484880:8afd88430bce
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Apr 14 08:22:49 2000 +0000
description:
add some casts to (u_long) to shut up gcc
diffstat:
sys/dev/ic/lsi64854.c | 10 +++++-----
sys/dev/sbus/cs4231_sbus.c | 4 ++--
sys/dev/sbus/lebuffer.c | 4 ++--
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r ccdd6f58af7a -r 8afd88430bce sys/dev/ic/lsi64854.c
--- a/sys/dev/ic/lsi64854.c Fri Apr 14 06:28:18 2000 +0000
+++ b/sys/dev/ic/lsi64854.c Fri Apr 14 08:22:49 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lsi64854.c,v 1.8 1999/06/05 08:35:45 pk Exp $ */
+/* $NetBSD: lsi64854.c,v 1.9 2000/04/14 08:27:17 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -287,7 +287,7 @@
panic("%s: cannot allocate DVMA address",
sc->sc_dev.dv_xname);
bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap,
- (bus_addr_t)sc->sc_dvmaaddr, sc->sc_dmasize,
+ (bus_addr_t)(u_long)sc->sc_dvmaaddr, sc->sc_dmasize,
datain
? BUS_DMASYNC_PREREAD
: BUS_DMASYNC_PREWRITE);
@@ -422,7 +422,7 @@
if (sc->sc_dmamap->dm_nsegs > 0) {
bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap,
- (bus_addr_t)sc->sc_dvmaaddr, sc->sc_dmasize,
+ (bus_addr_t)(u_long)sc->sc_dvmaaddr, sc->sc_dmasize,
(csr & D_WRITE) != 0
? BUS_DMASYNC_POSTREAD
: BUS_DMASYNC_POSTWRITE);
@@ -522,7 +522,7 @@
panic("%s: cannot allocate DVMA address",
sc->sc_dev.dv_xname);
bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap,
- (bus_addr_t)sc->sc_dvmaaddr, sc->sc_dmasize,
+ (bus_addr_t)(u_long)sc->sc_dvmaaddr, sc->sc_dmasize,
datain
? BUS_DMASYNC_PREREAD
: BUS_DMASYNC_PREWRITE);
@@ -597,7 +597,7 @@
if (sc->sc_dmamap->dm_nsegs > 0) {
bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap,
- (bus_addr_t)sc->sc_dvmaaddr, sc->sc_dmasize,
+ (bus_addr_t)(u_long)sc->sc_dvmaaddr, sc->sc_dmasize,
(csr & D_WRITE) != 0
? BUS_DMASYNC_POSTREAD
: BUS_DMASYNC_POSTWRITE);
diff -r ccdd6f58af7a -r 8afd88430bce sys/dev/sbus/cs4231_sbus.c
--- a/sys/dev/sbus/cs4231_sbus.c Fri Apr 14 06:28:18 2000 +0000
+++ b/sys/dev/sbus/cs4231_sbus.c Fri Apr 14 08:22:49 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cs4231_sbus.c,v 1.12 1999/11/21 15:01:51 pk Exp $ */
+/* $NetBSD: cs4231_sbus.c,v 1.13 2000/04/14 08:22:49 mrg Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -119,7 +119,7 @@
}
sc->sc_ad1848.sc_ioh = bh;
- sc->sc_dmareg = (struct apc_dma *)(bh + CS4231_REG_SIZE);
+ sc->sc_dmareg = (struct apc_dma *)(u_long)(bh + CS4231_REG_SIZE);
cs4231_init(sc);
diff -r ccdd6f58af7a -r 8afd88430bce sys/dev/sbus/lebuffer.c
--- a/sys/dev/sbus/lebuffer.c Fri Apr 14 06:28:18 2000 +0000
+++ b/sys/dev/sbus/lebuffer.c Fri Apr 14 08:22:49 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lebuffer.c,v 1.6 2000/01/11 12:59:44 pk Exp $ */
+/* $NetBSD: lebuffer.c,v 1.7 2000/04/14 08:22:49 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -116,7 +116,7 @@
* Lance ring-buffers can be stored. Note the buffer's location
* and size, so the `le' driver can pick them up.
*/
- sc->sc_buffer = (caddr_t)bh;
+ sc->sc_buffer = (caddr_t)(u_long)bh;
sc->sc_bufsiz = sa->sa_size;
node = sc->sc_node = sa->sa_node;
Home |
Main Index |
Thread Index |
Old Index