slub: Dont define useless label in the !CONFIG_CMPXCHG_LOCAL case
The redo label needs #ifdeffery. Fixes the following problem introduced by
commit 8a5ec0ba42
("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 <sfr@canb.auug.org.au>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Pekka Enberg
parent
8a5ec0ba42
commit
a24c5a0ea9
@@ -2073,9 +2073,11 @@ static __always_inline void slab_free(struct kmem_cache *s,
|
|||||||
|
|
||||||
#ifndef CONFIG_CMPXCHG_LOCAL
|
#ifndef CONFIG_CMPXCHG_LOCAL
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
|
|
||||||
|
#else
|
||||||
|
redo:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
redo:
|
|
||||||
/*
|
/*
|
||||||
* Determine the currently cpus per cpu slab.
|
* Determine the currently cpus per cpu slab.
|
||||||
* The cpu may change afterward. However that does not matter since
|
* The cpu may change afterward. However that does not matter since
|
||||||
|
Reference in New Issue
Block a user