kernel: make sure that CONFIG_OBJECT_TRACING structs are properly ifdef'ed
Fixes sparse warnings: <snip>/zephyr/kernel/timer.c:15:16: warning: symbol '_trace_list_k_timer' was not declared. Should it be static? <snip>/zephyr/kernel/sem.c:32:14: warning: symbol'_trace_list_k_sem' was not declared. Should it be static? <snip>/zephyr/kernel/stack.c:24:16: warning: symbol '_trace_list_k_stack' was not declared. Should it be static? <snip>/zephyr/kernel/queue.c:27:16: warning: symbol '_trace_list_k_queue' was not declared. Should it be static? <snip>/zephyr/kernel/pipes.c:40:15: warning: symbol '_trace_list_k_pipe' was not declared. Should it be static? <snip>/zephyr/kernel/mutex.c:46:16: warning: symbol '_trace_list_k_mutex' was not declared. Should it be static? <snip>/zephyr/kernel/msg_q.c:26:15: warning: symbol '_trace_list_k_msgq' was not declared. Should it be static? <snip>/zephyr/kernel/mem_slab.c:20:19: warning: symbol '_trace_list_k_mem_slab' was not declared. Should it be static? <snip>/zephyr/kernel/mailbox.c:53:15: warning: symbol '_trace_list_k_mbox' was not declared. Should it be static? Change-Id: I42d55aea9855b9c1dd560852ca033c9a19f1ac21 Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
This commit is contained in:
parent
fed96bf1bc
commit
059544d1ae
9 changed files with 18 additions and 12 deletions
|
@ -50,7 +50,9 @@ static inline void _mbox_async_free(struct k_mbox_async *async)
|
|||
extern struct k_mbox _k_mbox_list_start[];
|
||||
extern struct k_mbox _k_mbox_list_end[];
|
||||
|
||||
#ifdef CONFIG_OBJECT_TRACING
|
||||
struct k_mbox *_trace_list_k_mbox;
|
||||
#endif /* CONFIG_OBJECT_TRACING */
|
||||
|
||||
#if (CONFIG_NUM_MBOX_ASYNC_MSGS > 0) || \
|
||||
defined(CONFIG_OBJECT_TRACING)
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
extern struct k_mem_slab _k_mem_slab_list_start[];
|
||||
extern struct k_mem_slab _k_mem_slab_list_end[];
|
||||
|
||||
#ifdef CONFIG_OBJECT_TRACING
|
||||
struct k_mem_slab *_trace_list_k_mem_slab;
|
||||
#endif /* CONFIG_OBJECT_TRACING */
|
||||
|
||||
/**
|
||||
* @brief Initialize kernel memory slab subsystem.
|
||||
|
|
|
@ -23,10 +23,10 @@
|
|||
extern struct k_msgq _k_msgq_list_start[];
|
||||
extern struct k_msgq _k_msgq_list_end[];
|
||||
|
||||
struct k_msgq *_trace_list_k_msgq;
|
||||
|
||||
#ifdef CONFIG_OBJECT_TRACING
|
||||
|
||||
struct k_msgq *_trace_list_k_msgq;
|
||||
|
||||
/*
|
||||
* Complete initialization of statically defined message queues.
|
||||
*/
|
||||
|
|
|
@ -43,10 +43,10 @@
|
|||
extern struct k_mutex _k_mutex_list_start[];
|
||||
extern struct k_mutex _k_mutex_list_end[];
|
||||
|
||||
struct k_mutex *_trace_list_k_mutex;
|
||||
|
||||
#ifdef CONFIG_OBJECT_TRACING
|
||||
|
||||
struct k_mutex *_trace_list_k_mutex;
|
||||
|
||||
/*
|
||||
* Complete initialization of statically defined mutexes.
|
||||
*/
|
||||
|
|
|
@ -37,7 +37,9 @@ struct k_pipe_async {
|
|||
extern struct k_pipe _k_pipe_list_start[];
|
||||
extern struct k_pipe _k_pipe_list_end[];
|
||||
|
||||
#ifdef CONFIG_OBJECT_TRACING
|
||||
struct k_pipe *_trace_list_k_pipe;
|
||||
#endif /* CONFIG_OBJECT_TRACING */
|
||||
|
||||
#if (CONFIG_NUM_PIPE_ASYNC_MSGS > 0)
|
||||
|
||||
|
|
|
@ -24,10 +24,10 @@
|
|||
extern struct k_queue _k_queue_list_start[];
|
||||
extern struct k_queue _k_queue_list_end[];
|
||||
|
||||
struct k_queue *_trace_list_k_queue;
|
||||
|
||||
#ifdef CONFIG_OBJECT_TRACING
|
||||
|
||||
struct k_queue *_trace_list_k_queue;
|
||||
|
||||
/*
|
||||
* Complete initialization of statically defined queues.
|
||||
*/
|
||||
|
|
|
@ -29,10 +29,10 @@
|
|||
extern struct k_sem _k_sem_list_start[];
|
||||
extern struct k_sem _k_sem_list_end[];
|
||||
|
||||
struct k_sem *_trace_list_k_sem;
|
||||
|
||||
#ifdef CONFIG_OBJECT_TRACING
|
||||
|
||||
struct k_sem *_trace_list_k_sem;
|
||||
|
||||
/*
|
||||
* Complete initialization of statically defined semaphores.
|
||||
*/
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
extern struct k_stack _k_stack_list_start[];
|
||||
extern struct k_stack _k_stack_list_end[];
|
||||
|
||||
struct k_stack *_trace_list_k_stack;
|
||||
|
||||
#ifdef CONFIG_OBJECT_TRACING
|
||||
|
||||
struct k_stack *_trace_list_k_stack;
|
||||
|
||||
/*
|
||||
* Complete initialization of statically defined stacks.
|
||||
*/
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
extern struct k_timer _k_timer_list_start[];
|
||||
extern struct k_timer _k_timer_list_end[];
|
||||
|
||||
struct k_timer *_trace_list_k_timer;
|
||||
|
||||
#ifdef CONFIG_OBJECT_TRACING
|
||||
|
||||
struct k_timer *_trace_list_k_timer;
|
||||
|
||||
/*
|
||||
* Complete initialization of statically defined timers.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue