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 <bbolen@lexmark.com>
This commit is contained in:
parent
3950f664dd
commit
d2ef19bd25
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ From RIRQ:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SECTION_FUNC(TEXT, _isr_wrapper)
|
SECTION_FUNC(TEXT, _isr_wrapper)
|
||||||
#if CONFIG_ARC_FIRQ
|
#if defined(CONFIG_ARC_FIRQ)
|
||||||
#if CONFIG_RGF_NUM_BANKS == 1
|
#if CONFIG_RGF_NUM_BANKS == 1
|
||||||
st r0,[saved_r0]
|
st r0,[saved_r0]
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue