diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2008-03-20 20:59:34 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-04-04 22:43:47 +0100 |
commit | e64a3cfcd929d093a2f076bcace9afa7ba5a2e32 (patch) | |
tree | 9129a2cff111066152a00898fa567ec9f2d844bb /include/asm-mips | |
parent | 865ab8753837b73fe1e800fc88462c5914eec549 (diff) | |
download | kernel_samsung_espresso10-e64a3cfcd929d093a2f076bcace9afa7ba5a2e32.zip kernel_samsung_espresso10-e64a3cfcd929d093a2f076bcace9afa7ba5a2e32.tar.gz kernel_samsung_espresso10-e64a3cfcd929d093a2f076bcace9afa7ba5a2e32.tar.bz2 |
[MIPS] Make KGDB compile on UP
Building UP kernel with KGDB enabled produces the following errors and warning
(fatal due to -Werror in arch/mips/kernel/Makefile):
In file included from arch/mips/kernel/gdb-stub.c:142:
include/asm/smp.h:25:1: "raw_smp_processor_id" redefined
In file included from include/linux/sched.h:69,
from arch/mips/kernel/gdb-stub.c:126:
include/linux/smp.h:88:1: this is the location of the previous definition
In file included from arch/mips/kernel/gdb-stub.c:142:
include/asm/smp.h:62: error: redefinition of 'smp_send_reschedule'
include/linux/smp.h:102: error: previous definition of 'smp_send_reschedule' was here
include/asm/smp.h: In function `smp_send_reschedule':
include/asm/smp.h:65: error: dereferencing pointer to incomplete type
arch/mips/kernel/gdb-stub.c: At top level:
arch/mips/kernel/gdb-stub.c:660: warning: 'kgdb_wait' defined but not used
Fix the errors by not directly including <asm/smp.h> (which is already included
by <linux/smp.h>) and the warning by enclosing kgdb_wait() in #ifdef CONFIG_SMP.
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
0 files changed, 0 insertions, 0 deletions