From: Christoph Lameter Date: Tue, 15 Mar 2011 17:45:21 +0000 (-0500) Subject: slub: Dont define useless label in the !CONFIG_CMPXCHG_LOCAL case X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a24c5a0ea902bcda348f086bd909cc2d6e305bf8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git slub: Dont define useless label in the !CONFIG_CMPXCHG_LOCAL case The redo label needs #ifdeffery. Fixes the following problem introduced by commit 8a5ec0ba42c4 ("Lockless (and preemptless) fastpaths for slub"): mm/slub.c: In function 'slab_free': mm/slub.c:2124: warning: label 'redo' defined but not used Reported-by: Stephen Rothwell Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg --- diff --git a/mm/slub.c b/mm/slub.c index 65030c7fd7e2..f32aee37840b 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2073,9 +2073,11 @@ static __always_inline void slab_free(struct kmem_cache *s, #ifndef CONFIG_CMPXCHG_LOCAL local_irq_save(flags); -#endif +#else redo: +#endif + /* * Determine the currently cpus per cpu slab. * The cpu may change afterward. However that does not matter since