arch: arm: Fix checks of CONFIG_IRQ_OFFLOAD
The compiler generates errors of the form error: "CONFIG_IRQ_OFFLOAD" 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
63013d93ab
commit
65ae6433dc
1 changed files with 2 additions and 2 deletions
|
@ -301,7 +301,7 @@ _stack_frame_endif:
|
||||||
cmp r1, #2
|
cmp r1, #2
|
||||||
beq _oops
|
beq _oops
|
||||||
|
|
||||||
#if CONFIG_IRQ_OFFLOAD
|
#if defined(CONFIG_IRQ_OFFLOAD)
|
||||||
push {r0, lr}
|
push {r0, lr}
|
||||||
bl z_irq_do_offload /* call C routine which executes the offload */
|
bl z_irq_do_offload /* call C routine which executes the offload */
|
||||||
pop {r0, r1}
|
pop {r0, r1}
|
||||||
|
@ -367,7 +367,7 @@ SECTION_FUNC(TEXT, __svc)
|
||||||
cmp r1, #2
|
cmp r1, #2
|
||||||
beq _oops
|
beq _oops
|
||||||
|
|
||||||
#if CONFIG_IRQ_OFFLOAD
|
#if defined(CONFIG_IRQ_OFFLOAD)
|
||||||
push {r0, lr}
|
push {r0, lr}
|
||||||
bl z_irq_do_offload /* call C routine which executes the offload */
|
bl z_irq_do_offload /* call C routine which executes the offload */
|
||||||
pop {r0, lr}
|
pop {r0, lr}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue