Skip to content
Permalink
Browse files

arch: arm: Fix check of Kconfig option

The compiler was generating errors of the form
error: "CONFIG_ZERO_LATENCY_IRQS" is not defined, evaluates to 0
[-Werror=undef] when -Wundef is used and the config option was turned
off.  Change check to ifdef.

Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
  • Loading branch information...
Bradley Bolen authored and andrewboie committed May 15, 2019
1 parent e8e5086 commit 6b51ef731d2907a7fa75d69c214a3e40174884e1
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/arch/arm/cortex_m/irq.h
@@ -48,7 +48,7 @@ extern void z_irq_priority_set(unsigned int irq, unsigned int prio,


/* Flags for use with IRQ_CONNECT() */
#if CONFIG_ZERO_LATENCY_IRQS
#ifdef CONFIG_ZERO_LATENCY_IRQS
/**
* Set this interrupt up as a zero-latency IRQ. It has a fixed hardware
* priority level (discarding what was supplied in the interrupt's priority

0 comments on commit 6b51ef7

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