Skip to content

Commit

Permalink
fix na 1 z __sparse
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinszkudlinski committed Sep 4, 2023
1 parent db52644 commit 81b9507
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ipc/ipc3/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 81b9507

Please sign in to comment.