Skip to content

Commit

Permalink
cmocka: fix cmocka build issue
Browse files Browse the repository at this point in the history
Fix the cmocka build issue after adding functions
for explicitly get ipc device for component, buffer
and pipeline.

Signed-off-by: Chao Song <chao.song@linux.intel.com>
  • Loading branch information
Chao Song authored and lgirdwood committed Aug 23, 2023
1 parent ba07a14 commit bc28b92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/cmocka/src/common_mocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,10 @@ void WEAK platform_dai_timestamp(struct comp_dev *dai,
(void)posn;
}

struct ipc_comp_dev * WEAK ipc_get_comp_by_id(struct ipc *ipc, uint32_t id)
struct ipc_comp_dev *WEAK ipc_get_comp_dev(struct ipc *ipc, uint16_t type, uint32_t id)
{
(void)ipc;
(void)type;
(void)id;

return NULL;
Expand Down

0 comments on commit bc28b92

Please sign in to comment.