Permalink
Browse files

mm: highmem: Avoid compiler warning

I can't find an official statement about the type of virt_to_page's
argument, but the asm-generic version typecasts the argument to
unsigned long, so I'm assuming that it's supposed to be a pointer.
  • Loading branch information...
1 parent 2771922 commit 59521e9a1b80f13a3004527bc52e4bfd25d0537a @mthuurne mthuurne committed Apr 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mm/highmem.c
View
@@ -103,7 +103,7 @@ struct page *kmap_to_page(void *vaddr)
return pte_page(pkmap_page_table[i]);
}
- return virt_to_page(addr);
+ return virt_to_page((void *)addr);
}
EXPORT_SYMBOL(kmap_to_page);

0 comments on commit 59521e9

Please sign in to comment.