common_mocks.c: fix !CONFIG_TRACE build

Fixes 'no previous prototype for trace_log_filtered' -Werr and
redefinition of ‘trace_flush_dma_to_mbox’ error.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-07-25 04:45:56 +00:00 committed by Liam Girdwood
parent 0ea32291ae
commit 589f035ad4
1 changed files with 5 additions and 0 deletions

View File

@ -100,6 +100,7 @@ void WEAK __panic(uint32_t p, char *filename, uint32_t linenum)
exit(EXIT_FAILURE);
}
#if CONFIG_TRACE
void WEAK trace_log_filtered(bool send_atomic, const void *log_entry, const struct tr_ctx *ctx,
uint32_t lvl, uint32_t id_1, uint32_t id_2, int arg_count, ...)
{
@ -115,6 +116,7 @@ void WEAK trace_log_filtered(bool send_atomic, const void *log_entry, const stru
void WEAK trace_flush_dma_to_mbox(void)
{
}
#endif
#if CONFIG_LIBRARY
volatile void *task_context_get(void);
@ -330,6 +332,8 @@ int WEAK arch_cpu_is_core_enabled(int id)
int WEAK test_bench_trace = 1;
int WEAK debug;
/* ... but not always in unit tests */
#if CONFIG_TRACE
/* look up subsystem class name from table */
char * WEAK get_trace_class(uint32_t trace_class)
{
@ -339,6 +343,7 @@ char * WEAK get_trace_class(uint32_t trace_class)
*/
return "unknown";
}
#endif
uint8_t * WEAK get_library_mailbox(void)
{