Skip to content
Permalink
Browse files

tracing: Fix checks of Kconfig options

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

Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
  • Loading branch information...
Bradley Bolen authored and andrewboie committed May 7, 2019
1 parent 63e784c commit e8e5086eed24f8acdb771db3a37e9ad735a2e4db
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/tracing.h
@@ -18,7 +18,7 @@
#define SYS_TRACE_ID_SEMA_GIVE (5u + SYS_TRACE_ID_OFFSET)
#define SYS_TRACE_ID_SEMA_TAKE (6u + SYS_TRACE_ID_OFFSET)

#if CONFIG_TRACING
#ifdef CONFIG_TRACING
void z_sys_trace_idle(void);
void z_sys_trace_isr_enter(void);
void z_sys_trace_isr_exit(void);

0 comments on commit e8e5086

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