Re: [PATCH 2.6.17 sparc64] fix stack overflow checking in modularnon-SMP kernels

From: David Miller
Date: Wed Jul 05 2006 - 23:41:08 EST


From: Mikael Pettersson <mikpe@xxxxxxxx>
Date: Tue, 4 Jul 2006 22:10:11 +0200 (MEST)

> The sparc64 kernel's EXPORT_SYMBOL(_mcount) is inside an
> #ifdef CONFIG_SMP. This breaks modules in non-SMP kernels
> built with stack overflow checking (CONFIG_STACK_DEBUG=y),
> as modules_install reports:
>
> WARNING: /lib/modules/2.6.17/kernel/drivers/ide/ide-cd.ko needs unknown symbol _mcount
>
> Trivially fixed by moving EXPORT_SYMBOL(_mcount) outside of
> the #ifdef CONFIG_SMP.
>
> Signed-off-by: Mikael Pettersson <mikpe@xxxxxxxx>

Applied, thanks Mikael.
-
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/