aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2008-02-05 01:28:32 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 12:44:14 -0500
commitb3bdda02aa547a0753b4fdbc105e86ef9046b30b (patch)
tree969557274d94bd0a8e3c638b796c0a13f3e3afd2 /include/linux/mm.h
parent48667e7a43c1a1e0ba743f93ae946f8cb34ff2f9 (diff)
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>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 1961056b1af7..a862a96952e0 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -232,8 +232,8 @@ static inline int get_page_unless_zero(struct page *page)
232} 232}
233 233
234/* Support for virtually mapped pages */ 234/* Support for virtually mapped pages */
235struct page *vmalloc_to_page(void *addr); 235struct page *vmalloc_to_page(const void *addr);
236unsigned long vmalloc_to_pfn(void *addr); 236unsigned long vmalloc_to_pfn(const void *addr);
237 237
238static inline struct page *compound_head(struct page *page) 238static inline struct page *compound_head(struct page *page)
239{ 239{