summaryrefslogtreecommitdiffstats
path: root/sys/dev/ips/ips_disk.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-06-27 23:10:58 +0000
committerpeter <peter@FreeBSD.org>2003-06-27 23:10:58 +0000
commitc8946bbbb5e7facd90e48133d4617a78eedd198d (patch)
tree181ccc3ba2178670314b85e5fa4dcfcfa67d3c9c /sys/dev/ips/ips_disk.c
parent6df8dff079da162cd074e7e158f9132366f08c00 (diff)
downloadFreeBSD-src-c8946bbbb5e7facd90e48133d4617a78eedd198d.zip
FreeBSD-src-c8946bbbb5e7facd90e48133d4617a78eedd198d.tar.gz
Fix pointer/int warnings so this compiles on amd64. The driver wants
to store an int in the bio->bio_driver1 (a void *). It is big enough, but you have to match the int sizes first before doing the cast. Glanced at by: scottl
Diffstat (limited to 'sys/dev/ips/ips_disk.c')
-rw-r--r--sys/dev/ips/ips_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ips/ips_disk.c b/sys/dev/ips/ips_disk.c
index bbeaf9f..2ea2c76 100644
--- a/sys/dev/ips/ips_disk.c
+++ b/sys/dev/ips/ips_disk.c
@@ -97,7 +97,7 @@ static void ipsd_strategy(struct bio *iobuf)
dsc = iobuf->bio_disk->d_drv1;
DEVICE_PRINTF(8,dsc->dev,"in strategy\n");
- (uint32_t)iobuf->bio_driver1 = dsc->sc->drives[dsc->disk_number].drivenum;
+ iobuf->bio_driver1 = (void *)(uintptr_t)dsc->sc->drives[dsc->disk_number].drivenum;
ips_start_io_request(dsc->sc, iobuf);
}
@@ -122,7 +122,7 @@ static int ipsd_attach(device_t dev)
dsc->dev = dev;
dsc->sc = device_get_softc(adapter);
dsc->unit = device_get_unit(dev);
- dsc->disk_number = (int) device_get_ivars(dev);
+ dsc->disk_number = (uintptr_t) device_get_ivars(dev);
dsc->ipsd_disk.d_drv1 = dsc;
dsc->ipsd_disk.d_name = "ipsd";
dsc->ipsd_disk.d_maxsize = IPS_MAX_IO_SIZE;
OpenPOWER on IntegriCloud