[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1010061311430.31538@router.home>
Date: Wed, 6 Oct 2010 13:12:11 -0500 (CDT)
From: Christoph Lameter <cl@...ux.com>
To: Zimny Lech <napohybelskurwysynom2010@...il.com>
cc: Stephen Rothwell <sfr@...b.auug.org.au>,
linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
Pekka Enberg <penberg@...helsinki.fi>
Subject: Re: linux-next: Tree for October 6
On Wed, 6 Oct 2010, Zimny Lech wrote:
> >> It seems that you forgot to push to repo
> >> http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=summary
> >
> > No, its just that the mirroring was slow/blocked :-(
>
> Ok, I pulled latest tree. Thanks.
>
> I already reported this before.
>
> /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
>
> any thoughts?
Subject: slub: hotplug_memory_notifier not useable for !CONFIG_MEMORY_HOTPLUG
Add #ifdef to resolve the situation.
Signed-off-by: Christoph Lameter <cl@...ux.com>
---
mm/slub.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6/mm/slub.c
===================================================================
--- linux-2.6.orig/mm/slub.c 2010-10-06 13:10:00.000000000 -0500
+++ linux-2.6/mm/slub.c 2010-10-06 13:10:25.000000000 -0500
@@ -3028,7 +3028,9 @@ void __init kmem_cache_init(void)
sizeof(struct kmem_cache_node),
0, SLAB_HWCACHE_ALIGN | SLAB_PANIC, NULL);
+#ifdef CONFIG_MEMORY_HOTPLUG
hotplug_memory_notifier(slab_memory_callback, SLAB_CALLBACK_PRI);
+#endif
/* Able to allocate the per node structures */
slab_state = PARTIAL;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists