summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 976f78c1a..68bbb7d17 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1534,7 +1534,7 @@ nul_ptr:
* it should be in this state _before_ it is released.
*/
static inline void
-__kmem_cache_free(kmem_cache_t *cachep, const void *objp)
+__kmem_cache_free(kmem_cache_t *cachep, void *objp)
{
kmem_slab_t *slabp;
kmem_bufctl_t *bufp;
@@ -1739,7 +1739,7 @@ kfree(const void *objp)
*/
cachep = SLAB_GET_PAGE_CACHE(page);
if (cachep && (cachep->c_flags & SLAB_CFLGS_GENERAL)) {
- __kmem_cache_free(cachep, objp);
+ __kmem_cache_free(cachep, (void *)objp);
return;
}
}
@@ -1774,7 +1774,7 @@ kfree_s(const void *objp, size_t size)
cachep = SLAB_GET_PAGE_CACHE(page);
if (cachep && cachep->c_flags & SLAB_CFLGS_GENERAL) {
if (size <= cachep->c_org_size) { /* XXX better check */
- __kmem_cache_free(cachep, objp);
+ __kmem_cache_free(cachep, (void *)objp);
return;
}
}