From 81b9507db87d004071f195de01fa36b6785f76db Mon Sep 17 00:00:00 2001 From: Marcin Szkudlinski Date: Mon, 4 Sep 2023 16:25:34 +0200 Subject: [PATCH] fix na 1 z __sparse --- src/ipc/ipc3/helper.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ipc/ipc3/helper.c b/src/ipc/ipc3/helper.c index ffcb43cf86e3..22c178b93a94 100644 --- a/src/ipc/ipc3/helper.c +++ b/src/ipc/ipc3/helper.c @@ -566,11 +566,12 @@ static int ipc_comp_to_buffer_connect(struct ipc_comp_dev *comp, { tr_dbg(&ipc_tr, "ipc: comp sink %d, source %d -> connect", buffer->id, comp->id); - +#if CONFIG_INCOHERENT if (comp->core != buffer->cb->core) { - tr_err(&ipc_tr, "ipc: shared buffers are not supported for IPC3"); + tr_err(&ipc_tr, "ipc: shared buffers are not supported for IPC3 on incoherent architectures"); return -ENOTSUP; } +#endif return comp_buffer_connect(comp->cd, comp->core, buffer->cb, PPL_CONN_DIR_COMP_TO_BUFFER); } @@ -581,10 +582,12 @@ static int ipc_buffer_to_comp_connect(struct ipc_comp_dev *buffer, tr_dbg(&ipc_tr, "ipc: comp sink %d, source %d -> connect", comp->id, buffer->id); +#if CONFIG_INCOHERENT if (comp->core != buffer->cb->core) { - tr_err(&ipc_tr, "ipc: shared buffers are not supported for IPC3"); + tr_err(&ipc_tr, "ipc: shared buffers are not supported for IPC3 on incoherent architectures"); return -ENOTSUP; } +#endif return comp_buffer_connect(comp->cd, comp->core, buffer->cb, PPL_CONN_DIR_BUFFER_TO_COMP); }