vmalloc: add const to void* parameters
Make vmalloc functions work the same way as kfree() and friends that take a const void * argument. [akpm@linux-foundation.org: fix consts, coding-style] Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
48667e7a43
commit
b3bdda02aa
@@ -232,8 +232,8 @@ static inline int get_page_unless_zero(struct page *page)
|
||||
}
|
||||
|
||||
/* Support for virtually mapped pages */
|
||||
struct page *vmalloc_to_page(void *addr);
|
||||
unsigned long vmalloc_to_pfn(void *addr);
|
||||
struct page *vmalloc_to_page(const void *addr);
|
||||
unsigned long vmalloc_to_pfn(const void *addr);
|
||||
|
||||
static inline struct page *compound_head(struct page *page)
|
||||
{
|
||||
|
Reference in New Issue
Block a user