Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6332aa9d authored by Christoph Lameter's avatar Christoph Lameter Committed by Pekka Enberg
Browse files

slub: Avoid warning for !CONFIG_SLUB_DEBUG



Move the #ifdef so that get_map is only defined if CONFIG_SLUB_DEBUG is defined.

Reported-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent 1759415e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -326,6 +326,7 @@ static inline int oo_objects(struct kmem_cache_order_objects x)
	return x.x & OO_MASK;
	return x.x & OO_MASK;
}
}


#ifdef CONFIG_SLUB_DEBUG
/*
/*
 * Determine a map of object in use on a page.
 * Determine a map of object in use on a page.
 *
 *
@@ -341,7 +342,6 @@ static void get_map(struct kmem_cache *s, struct page *page, unsigned long *map)
		set_bit(slab_index(p, s, addr), map);
		set_bit(slab_index(p, s, addr), map);
}
}


#ifdef CONFIG_SLUB_DEBUG
/*
/*
 * Debug settings:
 * Debug settings:
 */
 */