nds32: To use the generic dump_stack()
authorGreentime Hu <greentime@andestech.com>
Wed, 7 Mar 2018 09:45:16 +0000 (17:45 +0800)
committerGreentime Hu <greentime@andestech.com>
Fri, 16 Mar 2018 07:45:23 +0000 (15:45 +0800)
Use the generic dump_stack() instead of nds32 one because they are doing
the same thing.

Signed-off-by: Greentime Hu <greentime@andestech.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/nds32/kernel/traps.c

index 8828b4aeb72b5783af83e0dddf9f16efd4fa698d..6e34eb9824a4ad7ff220c81adaf65f4054c7fac8 100644 (file)
@@ -156,18 +156,6 @@ static void __dump(struct task_struct *tsk, unsigned long *base_reg)
        pr_emerg("\n");
 }
 
-void dump_stack(void)
-{
-       unsigned long *base_reg;
-       if (!IS_ENABLED(CONFIG_FRAME_POINTER))
-               __asm__ __volatile__("\tori\t%0, $sp, #0\n":"=r"(base_reg));
-       else
-               __asm__ __volatile__("\tori\t%0, $fp, #0\n":"=r"(base_reg));
-       __dump(NULL, base_reg);
-}
-
-EXPORT_SYMBOL(dump_stack);
-
 void show_stack(struct task_struct *tsk, unsigned long *sp)
 {
        unsigned long *base_reg;