From 5305f36d4fe59bf5bbef827d85f6e1917d716796 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Mon, 14 Aug 2017 15:24:16 -0700 Subject: [PATCH] object_tracing: fix definition This is a header file, the definition for _trace_list_sys_ring_buf needs to be 'extern' otherwise multiple instances of this variable could be instantiated, leading to linker errors. Signed-off-by: Andrew Boie --- include/debug/object_tracing_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/debug/object_tracing_common.h b/include/debug/object_tracing_common.h index f625752069b..2c3a15df988 100644 --- a/include/debug/object_tracing_common.h +++ b/include/debug/object_tracing_common.h @@ -99,7 +99,7 @@ struct ring_buf; -struct ring_buf *_trace_list_sys_ring_buf; +extern struct ring_buf *_trace_list_sys_ring_buf; #endif /*CONFIG_OBJECT_TRACING*/ #endif /*_OBJECT_TRACING_COMMON_H_*/