summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2009-12-17 14:39:30 +0100
committerGuillem Jover <guillem@hadrons.org>2009-12-18 11:56:45 +0100
commit155d3ff9361676190ff4483b37a2f7048625cd1e (patch)
tree69854c13ab530a05a18ca07c51b236d04d8aafb3 /vm
parent0e415b4ae44d610eafe484f6b9302b08a448accb (diff)
Add missing casts
* vm/vm_resident.c (vm_page_grab_contiguous_pages): Cast `prevmemp' assignement to vm_page_t.
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_resident.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index 0d5d650..b23e0f3 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -1098,7 +1098,7 @@ found_em:
if ((addr >= first_phys) &&
(addr < last_phys)) {
- *prevmemp = mem->pageq.next;
+ *prevmemp = (vm_page_t) mem->pageq.next;
pages[(addr - first_phys) >> PAGE_SHIFT] = mem;
mem->free = FALSE;
mem->extcounted = mem->external = external;
@@ -1107,7 +1107,7 @@ found_em:
*/
if (--npages == 0) break;
} else
- prevmemp = &mem->pageq.next;
+ prevmemp = (vm_page_t *) &mem->pageq.next;
mem = (vm_page_t) mem->pageq.next;
}