diff options
author | scottl <scottl@FreeBSD.org> | 2003-08-19 21:31:45 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2003-08-19 21:31:45 +0000 |
commit | 1da5f51c1800d7e6044c643b88237b5fafc7aebe (patch) | |
tree | 1e665fb2e84d4bd56f04d18cfd06917348de3138 /sys/dev/aac/aac_cam.c | |
parent | c855eab1df792ba00e5ba8b768d45e34e5224823 (diff) | |
download | FreeBSD-src-1da5f51c1800d7e6044c643b88237b5fafc7aebe.zip FreeBSD-src-1da5f51c1800d7e6044c643b88237b5fafc7aebe.tar.gz |
Make aac(4) compile cleanly on 64-bit machines. The code was already 64-bit
safe, but some (unneeded and/or harmless) downcasts were generating warnings.
The driver still is not endian-clean.
Diffstat (limited to 'sys/dev/aac/aac_cam.c')
-rw-r--r-- | sys/dev/aac/aac_cam.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/aac/aac_cam.c b/sys/dev/aac/aac_cam.c index 8386aed..86b125d 100644 --- a/sys/dev/aac/aac_cam.c +++ b/sys/dev/aac/aac_cam.c @@ -339,9 +339,14 @@ aac_cam_action(struct cam_sim *sim, union ccb *ccb) if ((ccb->ccb_h.flags & CAM_SCATTER_VALID) == 0) { srb->data_len = csio->dxfer_len; if (ccb->ccb_h.flags & CAM_DATA_PHYS) { + /* + * XXX This isn't 64-bit clean. + * However, this condition is not + * normally used in CAM. + */ srb->sg_map32.SgCount = 1; srb->sg_map32.SgEntry[0].SgAddress = - (u_int32_t)csio->data_ptr; + (uint32_t)(uintptr_t)csio->data_ptr; srb->sg_map32.SgEntry[0].SgByteCount = csio->dxfer_len; } else { |