Skip to contentSkip to conversation

remove duplicate save_stack_trace

PATCH New Robert Schwebel 1 participant 1 message Sep 12, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove duplicate save_stack_trace

Building the kernel with rt-preempt on MPC5121e, I get this one:

arch/powerpc/kernel/stacktrace.o: In function `save_stack_trace':
arch/powerpc/kernel/stacktrace.c:50: multiple definition of `save_stack_trace' arch/powerpc/kernel/setup_32.o:arch/powerpc/kernel/setup_32.c:328: first defined here

Looks like somebody forgot to remove this in setup_32.c; setup_64.c has it removed.

---
 arch/powerpc/kernel/setup_32.c |    7 -------
 1 file changed, 7 deletions(-)
arch/powerpc/kernel/setup_32.c +0 -6
Index: linux-2.6.26/arch/powerpc/kernel/setup_32.c
===================================================================
@@ -322,13 +322,6 @@ void __init setup_arch(char **cmdline_p)
 	paging_init();
 }
 
-#ifdef CONFIG_STACKTRACE
-#include <linux/stacktrace.h>
-void notrace save_stack_trace(struct stack_trace *trace)
-{
-}
-#endif /* CONFIG_STACKTRACE */