[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180307101011.28689-1-greentime@andestech.com>
Date: Wed, 7 Mar 2018 18:10:11 +0800
From: Greentime Hu <green.hu@...il.com>
To: linux-kernel@...r.kernel.org, arnd@...db.de,
greentime@...estech.com, green.hu@...il.com,
sergey.senozhatsky.work@...il.com, sergey.senozhatsky@...il.com,
sfr@...b.auug.org.au, peterz@...radead.org, pmladek@...e.com
Subject: [PATCH] nds32: To use the generic dump_stack()
Use the generic dump_stack() instead of nds32 one because they are doing
the same thing.
Signed-off-by: Greentime Hu <greentime@...estech.com>
Acked-by: Arnd Bergmann <arnd@...db.de>
---
arch/nds32/kernel/traps.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/arch/nds32/kernel/traps.c b/arch/nds32/kernel/traps.c
index 8828b4aeb72b..6e34eb9824a4 100644
--- a/arch/nds32/kernel/traps.c
+++ b/arch/nds32/kernel/traps.c
@@ -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;
--
2.16.1
Powered by blists - more mailing lists