diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-02-05 01:28:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:14 -0500 |
commit | b3bdda02aa547a0753b4fdbc105e86ef9046b30b (patch) | |
tree | 969557274d94bd0a8e3c638b796c0a13f3e3afd2 /mm/nommu.c | |
parent | 48667e7a43c1a1e0ba743f93ae946f8cb34ff2f9 (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 'mm/nommu.c')
-rw-r--r-- | mm/nommu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index b989cb928a7c..f3bfd015c40b 100644 --- a/mm/nommu.c +++ b/mm/nommu.c | |||
@@ -167,7 +167,7 @@ EXPORT_SYMBOL(get_user_pages); | |||
167 | DEFINE_RWLOCK(vmlist_lock); | 167 | DEFINE_RWLOCK(vmlist_lock); |
168 | struct vm_struct *vmlist; | 168 | struct vm_struct *vmlist; |
169 | 169 | ||
170 | void vfree(void *addr) | 170 | void vfree(const void *addr) |
171 | { | 171 | { |
172 | kfree(addr); | 172 | kfree(addr); |
173 | } | 173 | } |
@@ -183,13 +183,13 @@ void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot) | |||
183 | } | 183 | } |
184 | EXPORT_SYMBOL(__vmalloc); | 184 | EXPORT_SYMBOL(__vmalloc); |
185 | 185 | ||
186 | struct page * vmalloc_to_page(void *addr) | 186 | struct page *vmalloc_to_page(const void *addr) |
187 | { | 187 | { |
188 | return virt_to_page(addr); | 188 | return virt_to_page(addr); |
189 | } | 189 | } |
190 | EXPORT_SYMBOL(vmalloc_to_page); | 190 | EXPORT_SYMBOL(vmalloc_to_page); |
191 | 191 | ||
192 | unsigned long vmalloc_to_pfn(void *addr) | 192 | unsigned long vmalloc_to_pfn(const void *addr) |
193 | { | 193 | { |
194 | return page_to_pfn(virt_to_page(addr)); | 194 | return page_to_pfn(virt_to_page(addr)); |
195 | } | 195 | } |
@@ -267,7 +267,7 @@ void *vmap(struct page **pages, unsigned int count, unsigned long flags, pgprot_ | |||
267 | } | 267 | } |
268 | EXPORT_SYMBOL(vmap); | 268 | EXPORT_SYMBOL(vmap); |
269 | 269 | ||
270 | void vunmap(void *addr) | 270 | void vunmap(const void *addr) |
271 | { | 271 | { |
272 | BUG(); | 272 | BUG(); |
273 | } | 273 | } |