aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/mm/slab.c b/mm/slab.c
index d4b87690b275..cb2e411d93a9 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2123,6 +2123,8 @@ static int __init_refok setup_cpu_cache(struct kmem_cache *cachep)
2123 * 2123 *
2124 * @name must be valid until the cache is destroyed. This implies that 2124 * @name must be valid until the cache is destroyed. This implies that
2125 * the module calling this has to destroy the cache before getting unloaded. 2125 * the module calling this has to destroy the cache before getting unloaded.
2126 * Note that kmem_cache_name() is not guaranteed to return the same pointer,
2127 * therefore applications must manage it themselves.
2126 * 2128 *
2127 * The flags are 2129 * The flags are
2128 * 2130 *
@@ -2997,7 +2999,7 @@ retry:
2997 * there must be at least one object available for 2999 * there must be at least one object available for
2998 * allocation. 3000 * allocation.
2999 */ 3001 */
3000 BUG_ON(slabp->inuse < 0 || slabp->inuse >= cachep->num); 3002 BUG_ON(slabp->inuse >= cachep->num);
3001 3003
3002 while (slabp->inuse < cachep->num && batchcount--) { 3004 while (slabp->inuse < cachep->num && batchcount--) {
3003 STATS_INC_ALLOCED(cachep); 3005 STATS_INC_ALLOCED(cachep);
@@ -3686,9 +3688,9 @@ void *__kmalloc_node(size_t size, gfp_t flags, int node)
3686EXPORT_SYMBOL(__kmalloc_node); 3688EXPORT_SYMBOL(__kmalloc_node);
3687 3689
3688void *__kmalloc_node_track_caller(size_t size, gfp_t flags, 3690void *__kmalloc_node_track_caller(size_t size, gfp_t flags,
3689 int node, void *caller) 3691 int node, unsigned long caller)
3690{ 3692{
3691 return __do_kmalloc_node(size, flags, node, caller); 3693 return __do_kmalloc_node(size, flags, node, (void *)caller);
3692} 3694}
3693EXPORT_SYMBOL(__kmalloc_node_track_caller); 3695EXPORT_SYMBOL(__kmalloc_node_track_caller);
3694#else 3696#else
@@ -3730,9 +3732,9 @@ void *__kmalloc(size_t size, gfp_t flags)
3730} 3732}
3731EXPORT_SYMBOL(__kmalloc); 3733EXPORT_SYMBOL(__kmalloc);
3732 3734
3733void *__kmalloc_track_caller(size_t size, gfp_t flags, void *caller) 3735void *__kmalloc_track_caller(size_t size, gfp_t flags, unsigned long caller)
3734{ 3736{
3735 return __do_kmalloc(size, flags, caller); 3737 return __do_kmalloc(size, flags, (void *)caller);
3736} 3738}
3737EXPORT_SYMBOL(__kmalloc_track_caller); 3739EXPORT_SYMBOL(__kmalloc_track_caller);
3738 3740