提交 a24c5a0e 编写于 作者: C Christoph Lameter 提交者: Pekka Enberg

slub: Dont define useless label in the !CONFIG_CMPXCHG_LOCAL case

The redo label needs #ifdeffery. Fixes the following problem introduced by
commit 8a5ec0ba ("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: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NChristoph Lameter <cl@linux.com>
Signed-off-by: NPekka Enberg <penberg@kernel.org>
上级 8a5ec0ba
...@@ -2073,9 +2073,11 @@ static __always_inline void slab_free(struct kmem_cache *s, ...@@ -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);
#endif
#else
redo: redo:
#endif
/* /*
* 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册