From 6357970c5f02d1427f8664360269bccb5c5da161 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 18 Oct 2016 12:38:57 -0600 Subject: [PATCH] Xtensa: Fix some compilation issues --- arch/xtensa/include/irq.h | 2 +- arch/xtensa/src/common/xtensa_dumpstate.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/xtensa/include/irq.h b/arch/xtensa/include/irq.h index 0d7ef43807..a218a1f167 100644 --- a/arch/xtensa/include/irq.h +++ b/arch/xtensa/include/irq.h @@ -97,7 +97,7 @@ #define _REG_LOOPS_START (22) -#if CONFIG_XTENSA_HAVE_LOOPS +#ifdef CONFIG_XTENSA_HAVE_LOOPS # define REG_LBEG (_REG_LOOPS_START + 0) # define REG_LEND (_REG_LOOPS_START + 1) # define REG_LCOUNT (_REG_LOOPS_START + 2) diff --git a/arch/xtensa/src/common/xtensa_dumpstate.c b/arch/xtensa/src/common/xtensa_dumpstate.c index 0c28a63a7b..97128013cf 100644 --- a/arch/xtensa/src/common/xtensa_dumpstate.c +++ b/arch/xtensa/src/common/xtensa_dumpstate.c @@ -66,7 +66,7 @@ static inline uint32_t xtensa_getsp(void) { register uint32_t sp; -#waning Missing logic +#warning Missing logic return sp; } @@ -125,7 +125,7 @@ static inline void xtensa_registerdump(void) (unsigned long)g_current_regs[REG_EXIT], (unsigned long)g_current_regs[REG_EXCCAUSE], (unsigned long)g_current_regs[REG_EXCVADDR]); -#if CONFIG_XTENSA_HAVE_LOOPS +#ifdef CONFIG_XTENSA_HAVE_LOOPS _alert(" LBEG: %08lx LEND: %08lx LCNT: %08lx\n", (unsigned long)g_current_regs[REG_LBEG], (unsigned long)g_current_regs[REG_LEND], @@ -137,7 +137,6 @@ static inline void xtensa_registerdump(void) (unsigned long)g_current_regs[REG_TMP1], (unsigned long)g_current_regs[REG_TMP2]); #endif - #ifdef CONFIG_XTENSA_USE_SWPRI _alert(" VPRI: %08lx\n", (unsigned long)g_current_regs[REG_VPRI]);