On Thu, 12 May 2011, Christoph Lameter wrote: > Subject: slub: Avoid warning for !CONFIG_SLUB_DEBUG > > Move the #ifdef so that get_map is only defined if CONFIG_SLUB_DEBUG is defined. > > Signed-off-by: Christoph Lameter <cl@xxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx> > > --- > mm/slub.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: linux-2.6/mm/slub.c > =================================================================== > --- linux-2.6.orig/mm/slub.c 2011-05-12 11:38:42.000000000 -0500 > +++ linux-2.6/mm/slub.c 2011-05-12 11:39:40.000000000 -0500 > @@ -326,6 +326,7 @@ static inline int oo_objects(struct kmem > return x.x & OO_MASK; > } > > +#ifdef CONFIG_SLUB_DEBUG > /* > * Determine a map of object in use on a page. > * > @@ -341,7 +342,6 @@ static void get_map(struct kmem_cache *s > set_bit(slab_index(p, s, addr), map); > } > > -#ifdef CONFIG_SLUB_DEBUG > /* > * Debug settings: > */ -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>