diff options
author | Pekka Enberg <penberg@kernel.org> | 2010-10-06 09:58:16 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2010-10-06 14:16:42 -0400 |
commit | 92a5bbc11ff2442a54b2f1d313088c245828ef4e (patch) | |
tree | 282d34001447c8bdac1efe35bb04286788b6cdc9 /mm/slub.c | |
parent | a5a84755c5900416dce0166ac825866aad8048ef (diff) |
SLUB: Fix memory hotplug with !NUMA
This patch fixes the following build breakage when memory hotplug is enabled on
UMA configurations:
/home/test/linux-2.6/mm/slub.c: In function 'kmem_cache_init':
/home/test/linux-2.6/mm/slub.c:3031:2: error: 'slab_memory_callback'
undeclared (first use in this function)
/home/test/linux-2.6/mm/slub.c:3031:2: note: each undeclared
identifier is reported only once for each function it appears in
make[2]: *** [mm/slub.o] Error 1
make[1]: *** [mm] Error 2
make: *** [sub-make] Error 2
Reported-by: Zimny Lech <napohybelskurwysynom2010@gmail.com>
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2851,7 +2851,7 @@ int kmem_cache_shrink(struct kmem_cache *s) | |||
2851 | } | 2851 | } |
2852 | EXPORT_SYMBOL(kmem_cache_shrink); | 2852 | EXPORT_SYMBOL(kmem_cache_shrink); |
2853 | 2853 | ||
2854 | #if defined(CONFIG_NUMA) && defined(CONFIG_MEMORY_HOTPLUG) | 2854 | #if defined(CONFIG_MEMORY_HOTPLUG) |
2855 | static int slab_mem_going_offline_callback(void *arg) | 2855 | static int slab_mem_going_offline_callback(void *arg) |
2856 | { | 2856 | { |
2857 | struct kmem_cache *s; | 2857 | struct kmem_cache *s; |