diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slab.c | 2 | ||||
-rw-r--r-- | mm/slob.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -3541,7 +3541,7 @@ EXPORT_SYMBOL(kmem_cache_zalloc); | |||
3541 | * | 3541 | * |
3542 | * Currently only used for dentry validation. | 3542 | * Currently only used for dentry validation. |
3543 | */ | 3543 | */ |
3544 | int fastcall kmem_ptr_validate(struct kmem_cache *cachep, void *ptr) | 3544 | int fastcall kmem_ptr_validate(struct kmem_cache *cachep, const void *ptr) |
3545 | { | 3545 | { |
3546 | unsigned long addr = (unsigned long)ptr; | 3546 | unsigned long addr = (unsigned long)ptr; |
3547 | unsigned long min_addr = PAGE_OFFSET; | 3547 | unsigned long min_addr = PAGE_OFFSET; |
@@ -334,7 +334,7 @@ int kmem_cache_shrink(struct kmem_cache *d) | |||
334 | } | 334 | } |
335 | EXPORT_SYMBOL(kmem_cache_shrink); | 335 | EXPORT_SYMBOL(kmem_cache_shrink); |
336 | 336 | ||
337 | int kmem_ptr_validate(struct kmem_cache *a, void *b) | 337 | int kmem_ptr_validate(struct kmem_cache *a, const void *b) |
338 | { | 338 | { |
339 | return 0; | 339 | return 0; |
340 | } | 340 | } |