diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2012-10-12 22:06:06 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2012-10-12 22:06:06 +0000 |
| commit | 64d8b0b4727284ec402a354dc26fe4fa05a207ff (patch) | |
| tree | bf6e0927f8707fa2c1a38d011f7a6c85ce6a814f /sys/dev/virtio | |
| parent | 8039b7e51ba3fec2bcf775662f859c246359b45e (diff) | |
Notes
Diffstat (limited to 'sys/dev/virtio')
| -rw-r--r-- | sys/dev/virtio/scsi/virtio_scsi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/virtio/scsi/virtio_scsi.c b/sys/dev/virtio/scsi/virtio_scsi.c index f2e141259219..6b10a9654194 100644 --- a/sys/dev/virtio/scsi/virtio_scsi.c +++ b/sys/dev/virtio/scsi/virtio_scsi.c @@ -971,7 +971,8 @@ vtscsi_sg_append_scsi_buf(struct vtscsi_softc *sc, struct sglist *sg, csio->data_ptr, csio->dxfer_len); else error = sglist_append_phys(sg, - (vm_paddr_t) csio->data_ptr, csio->dxfer_len); + (vm_paddr_t)(vm_offset_t) csio->data_ptr, + csio->dxfer_len); } else { for (i = 0; i < csio->sglist_cnt && error == 0; i++) { @@ -979,7 +980,8 @@ vtscsi_sg_append_scsi_buf(struct vtscsi_softc *sc, struct sglist *sg, if ((ccbh->flags & CAM_SG_LIST_PHYS) == 0) error = sglist_append(sg, - (void *) dseg->ds_addr, dseg->ds_len); + (void *)(vm_offset_t) dseg->ds_addr, + dseg->ds_len); else error = sglist_append_phys(sg, (vm_paddr_t) dseg->ds_addr, dseg->ds_len); |
