From d2ef19bd259b9e18b383bfb84199b8559f25fd86 Mon Sep 17 00:00:00 2001 From: Bradley Bolen Date: Fri, 17 May 2019 14:54:43 -0400 Subject: [PATCH] arch: arc: Fix checks of CONFIG_ARC_FIRQ The compiler generates errors of the form error: "CONFIG_ARC_FIRQ" is not defined, evaluates to 0 [-Werror=undef] when -Wundef is used and the config option was turned off. Change check to if defined(). Signed-off-by: Bradley Bolen --- arch/arc/core/isr_wrapper.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/core/isr_wrapper.S b/arch/arc/core/isr_wrapper.S index 4d78384fa9f..a3549a4d105 100644 --- a/arch/arc/core/isr_wrapper.S +++ b/arch/arc/core/isr_wrapper.S @@ -227,7 +227,7 @@ From RIRQ: */ SECTION_FUNC(TEXT, _isr_wrapper) -#if CONFIG_ARC_FIRQ +#if defined(CONFIG_ARC_FIRQ) #if CONFIG_RGF_NUM_BANKS == 1 st r0,[saved_r0] #endif