Re: Make software suspend work with CONFIG_MEMORY_HOTPLUG=n

From: Pavel Machek
Date: Sun Jan 29 2006 - 10:20:28 EST


Hi!

> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=178339
>
> pageset_cpuup_callback() is marked __meminit, but software suspend
> needs it. Unfortunatly, if you don't have CONFIG_MEMORY_HOTPLUG set,
> the __meminit translates to __init, resulting in this...

> Signed-off-by: Dave Jones <davej@xxxxxxxxxx>

ACK. Please push...
Pavel

> --- linux-2.6.15.noarch/mm/page_alloc.c~ 2006-01-27 15:40:35.000000000 -0500
> +++ linux-2.6.15.noarch/mm/page_alloc.c 2006-01-27 15:40:40.000000000 -0500
> @@ -1939,7 +1939,7 @@ static inline void free_zone_pagesets(in
> }
> }
>
> -static int __meminit pageset_cpuup_callback(struct notifier_block *nfb,
> +static int pageset_cpuup_callback(struct notifier_block *nfb,
> unsigned long action,
> void *hcpu)
> {


--
Thanks, Sharp!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/