summaryrefslogtreecommitdiff
path: root/vm/vm_page.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-11-17 21:44:31 +0100
committerRichard Braun <rbraun@sceen.net>2014-11-17 21:48:19 +0100
commit49a3f5db0b9d829d89c7f7a2e994ea3f5dbdec3c (patch)
tree983096d6b86dc5a46894d24d40af80bf2599c963 /vm/vm_page.c
parent43533e334e6ec118651c2c689ddb75adb73d922b (diff)
vm/vm_kmem: minor interface updates
Make functions accept and return pointers instead of integers. Most users of the kernel allocator directly use the returned addresses. Pointers make that more practical.
Diffstat (limited to 'vm/vm_page.c')
-rw-r--r--vm/vm_page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_page.c b/vm/vm_page.c
index bae4ea4a..705e431c 100644
--- a/vm/vm_page.c
+++ b/vm/vm_page.c
@@ -561,7 +561,7 @@ vm_page_setup(void)
table_size = P2ROUND(nr_pages * sizeof(struct vm_page), PAGE_SIZE);
printk("vm_page: page table size: %zu entries (%zuk)\n", nr_pages,
table_size >> 10);
- table = (struct vm_page *)vm_kmem_bootalloc(table_size);
+ table = vm_kmem_bootalloc(table_size);
va = (unsigned long)table;
/*