public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SLUB: Fix memory hotplug with !NUMA
@ 2010-10-06 14:00 Pekka Enberg
  2010-10-06 16:02 ` Christoph Lameter
  2010-10-07 10:44 ` [PATCH] SLUB: Fix memory hotplug with !NUMA [OT[ el es
  0 siblings, 2 replies; 4+ messages in thread
From: Pekka Enberg @ 2010-10-06 14:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: Pekka Enberg, Christoph Lameter

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>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
---
 mm/slub.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/slub.c b/mm/slub.c
index fe536d3..8fd5401 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2851,7 +2851,7 @@ int kmem_cache_shrink(struct kmem_cache *s)
 }
 EXPORT_SYMBOL(kmem_cache_shrink);
 
-#if defined(CONFIG_NUMA) && defined(CONFIG_MEMORY_HOTPLUG)
+#if defined(CONFIG_MEMORY_HOTPLUG)
 static int slab_mem_going_offline_callback(void *arg)
 {
 	struct kmem_cache *s;
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] SLUB: Fix memory hotplug with !NUMA
  2010-10-06 14:00 [PATCH] SLUB: Fix memory hotplug with !NUMA Pekka Enberg
@ 2010-10-06 16:02 ` Christoph Lameter
  2010-10-07 10:44 ` [PATCH] SLUB: Fix memory hotplug with !NUMA [OT[ el es
  1 sibling, 0 replies; 4+ messages in thread
From: Christoph Lameter @ 2010-10-06 16:02 UTC (permalink / raw)
  To: Pekka Enberg; +Cc: linux-kernel

On Wed, 6 Oct 2010, Pekka Enberg wrote:

> This patch fixes the following build breakage when memory hotplug is enabled on
> UMA configurations:

Hum? That works?

> diff --git a/mm/slub.c b/mm/slub.c
> index fe536d3..8fd5401 100644
> --- a/mm/slub.c
> +++ b/mm/slub.c
> @@ -2851,7 +2851,7 @@ int kmem_cache_shrink(struct kmem_cache *s)
>  }
>  EXPORT_SYMBOL(kmem_cache_shrink);
>
> -#if defined(CONFIG_NUMA) && defined(CONFIG_MEMORY_HOTPLUG)
> +#if defined(CONFIG_MEMORY_HOTPLUG)
>  static int slab_mem_going_offline_callback(void *arg)
>  {
>  	struct kmem_cache *s;
>

Acked-by: Christoph Lameter <cl@linux.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] SLUB: Fix memory hotplug with !NUMA [OT[
  2010-10-06 14:00 [PATCH] SLUB: Fix memory hotplug with !NUMA Pekka Enberg
  2010-10-06 16:02 ` Christoph Lameter
@ 2010-10-07 10:44 ` el es
  2010-10-07 11:21   ` Pekka Enberg
  1 sibling, 1 reply; 4+ messages in thread
From: el es @ 2010-10-07 10:44 UTC (permalink / raw)
  To: linux-kernel

Pekka Enberg <penberg <at> kernel.org> writes:


> Reported-by: Zimny Lech <napohybelskurwysynom2010 <at> gmail.com>

Sorry for those not familiar with Polish language :

- the email address username contains explicit content by Polish language
standards (rough translation : kill the f**kers [or m-f])

- the name and surname is not likely to be real, it looks like nickname to me
(background : Zimny means cold; yes it may be also used as surname; Lech may be
a first name, but is also a name of a brand of beer made in Poland - together
the phrase 'Zimny Lech' I have seen used in a TV advertisement for that brewery
and its other (billboards etc) media. )

Just FYI.

Lukasz


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] SLUB: Fix memory hotplug with !NUMA [OT[
  2010-10-07 10:44 ` [PATCH] SLUB: Fix memory hotplug with !NUMA [OT[ el es
@ 2010-10-07 11:21   ` Pekka Enberg
  0 siblings, 0 replies; 4+ messages in thread
From: Pekka Enberg @ 2010-10-07 11:21 UTC (permalink / raw)
  To: el es
  Cc: linux-kernel, Christoph Lameter, Zimny Lech, Andrew Morton,
	Linus Torvalds

(Please don't trim the CC lists.)

On Thu, Oct 7, 2010 at 1:44 PM, el es <el.es.cr@gmail.com> wrote:
> Pekka Enberg <penberg <at> kernel.org> writes:
>> Reported-by: Zimny Lech <napohybelskurwysynom2010 <at> gmail.com>
>
> Sorry for those not familiar with Polish language :
>
> - the email address username contains explicit content by Polish language
> standards (rough translation : kill the f**kers [or m-f])

Heh.

> - the name and surname is not likely to be real, it looks like nickname to me
> (background : Zimny means cold; yes it may be also used as surname; Lech may be
> a first name, but is also a name of a brand of beer made in Poland - together
> the phrase 'Zimny Lech' I have seen used in a TV advertisement for that brewery
> and its other (billboards etc) media. )
>
> Just FYI.

Well, as long as it's a valid e-mail address and it's not a sign-off,
I don't really mind. If people don't want credit for their work (like
reporting bugs or testing patches), it's their choice.

                        Pekka

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-07 11:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-06 14:00 [PATCH] SLUB: Fix memory hotplug with !NUMA Pekka Enberg
2010-10-06 16:02 ` Christoph Lameter
2010-10-07 10:44 ` [PATCH] SLUB: Fix memory hotplug with !NUMA [OT[ el es
2010-10-07 11:21   ` Pekka Enberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox