summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device/ds_routines.c2
-rw-r--r--device/io_req.h2
-rw-r--r--device/subrs.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/device/ds_routines.c b/device/ds_routines.c
index 9ec5a6b..5b8fb3e 100644
--- a/device/ds_routines.c
+++ b/device/ds_routines.c
@@ -941,7 +941,7 @@ device_write_dealloc(ior)
kmem_io_map_deallocate(device_io_map,
trunc_page(ior->io_data),
- (vm_size_t) ior->io_alloc_size);
+ ior->io_alloc_size);
if (vm_map_copy_has_cont(io_copy)) {
diff --git a/device/io_req.h b/device/io_req.h
index 5988f55..162524d 100644
--- a/device/io_req.h
+++ b/device/io_req.h
@@ -66,7 +66,7 @@ struct io_req {
#define io_data io_un.data
long io_count; /* amount requested */
- long io_alloc_size; /* amount allocated */
+ vm_size_t io_alloc_size; /* amount allocated */
long io_residual; /* amount NOT done */
io_return_t io_error; /* error code */
/* call when done - returns TRUE if IO really finished */
diff --git a/device/subrs.c b/device/subrs.c
index c2fe7ec..a82bae3 100644
--- a/device/subrs.c
+++ b/device/subrs.c
@@ -140,6 +140,6 @@ void brelse(bp)
(void) vm_deallocate(kernel_map,
(vm_offset_t) ior->io_data,
- (vm_size_t) ior->io_alloc_size);
+ ior->io_alloc_size);
io_req_free(ior);
}