]> err.no Git - linux-2.6/commit
[SPARC64]: Fix stack overflow checking in modular non-SMP kernels.
authorMikael Pettersson <mikpe@it.uu.se>
Thu, 6 Jul 2006 03:42:58 +0000 (20:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jul 2006 03:42:58 +0000 (20:42 -0700)
commit37e64e5ae1a9554762b6ec494871adcf48be20cf
treebb01a8691e180991e4f0469f171ef0c79a889710
parent7233589d77fdb593b482a8b7ee867e901f54b593
[SPARC64]: Fix stack overflow checking in modular non-SMP kernels.

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@it.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/sparc64_ksyms.c