nds32: Fix empty call trace
authorZong Li <[email protected]>
Mon, 13 Aug 2018 05:28:23 +0000 (13:28 +0800)
committerGreentime Hu <[email protected]>
Tue, 4 Sep 2018 06:45:16 +0000 (14:45 +0800)
The compiler predefined macro 'NDS32_ABI_2' had been removed, it should
use the '__NDS32_ABI_2' here.

Signed-off-by: Zong Li <[email protected]>
Acked-by: Greentime Hu <[email protected]>
Signed-off-by: Greentime Hu <[email protected]>
arch/nds32/kernel/traps.c

index a6205fd4db521eaf83c606d399975a4fe275c250..f0e974347c26e18545fbf1410a6a140f18313828 100644 (file)
@@ -137,7 +137,7 @@ static void __dump(struct task_struct *tsk, unsigned long *base_reg)
                       !((unsigned long)base_reg & 0x3) &&
                       ((unsigned long)base_reg >= TASK_SIZE)) {
                        unsigned long next_fp;
-#if !defined(NDS32_ABI_2)
+#if !defined(__NDS32_ABI_2)
                        ret_addr = base_reg[0];
                        next_fp = base_reg[1];
 #else