Skip to content
Browse files

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 <>
  • Loading branch information...
Bradley Bolen authored and nashif committed May 17, 2019
1 parent 3950f66 commit d2ef19bd259b9e18b383bfb84199b8559f25fd86
Showing with 1 addition and 1 deletion.
  1. +1 −1 arch/arc/core/isr_wrapper.S
@@ -227,7 +227,7 @@ From RIRQ:

SECTION_FUNC(TEXT, _isr_wrapper)
#if defined(CONFIG_ARC_FIRQ)
st r0,[saved_r0]

0 comments on commit d2ef19b

Please sign in to comment.
You can’t perform that action at this time.