ipc4: logging: fix library build

Fix build with CONFIG_LIBRARY.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2023-09-18 18:56:19 -07:00 committed by Liam Girdwood
parent deb7a097e3
commit 545ab19ff5
2 changed files with 12 additions and 1 deletions

View File

@ -8,10 +8,20 @@
#define SOF_IPC4_LOGGING_MTRACE_PAGE_SIZE 0x1000
#if CONFIG_LIBRARY
static inline int ipc4_logging_enable_logs(bool first_block,
bool last_block,
uint32_t data_offset_or_size,
const char *data)
{
return 0;
}
#else
int ipc4_logging_enable_logs(bool first_block,
bool last_block,
uint32_t data_offset_or_size,
const char *data);
#endif
int ipc4_logging_shutdown(void);

View File

@ -14,9 +14,10 @@
#include <ipc4/base_fw.h>
#include <ipc4/error_status.h>
#include <ipc4/logging.h>
#if !CONFIG_LIBRARY
#include <zephyr/logging/log_backend.h>
#include <zephyr/logging/log.h>
#endif
#if CONFIG_LOG_BACKEND_SOF_PROBE
#include <sof/probe/probe.h>
#endif