diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-02-04 10:06:14 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-02-06 10:26:45 +0200 |
commit | 9a138bc92f5e656be48ced9decd353a91f21b648 (patch) | |
tree | a9b261c5bb13a30c43f5b1d63b9edf6b2b67f8b8 /init | |
parent | 8b9ffd9d52479bd17b5729c9f3acaefa90c7e585 (diff) |
SLQB: Fix compile warnings on UMA and UP
As reported by Stephen Rothwell:
Today's linux-next build (powerpc allnoconfig) produced this warning:
mm/slqb.c: In function 'kmem_cache_open':
mm/slqb.c:2180: warning: label 'error_lock' defined but not used
mm/slqb.c:2176: warning: label 'error_cpu_array' defined but not used
Caused by commit 8b9ffd9d52479bd17b5729c9f3acaefa90c7e585 ("slqb: dynamic
array allocations").
Clearly neither CONFIG_SMP not CONFIG_NUMA is set.
Fix those up by wrapping the labes in ifdef CONFIG_SMP and CONFIG_NUMA where
appropriate.
Cc: Nick Piggin <npiggin@suse.de>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions