From 42e0d5e0b56dc15c540475bca2f48d39b73fc627 Mon Sep 17 00:00:00 2001 From: Tinghan Shen Date: Thu, 12 May 2022 18:07:58 +0800 Subject: [PATCH] drivers: mediatek: fix build error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix mediatek driver build error after ipc_cmd_hdr is updated. sof/src/drivers/mediatek/mt8186/ipc.c: In function ‘ipc_platform_do_cmd’: sof/src/drivers/mediatek/mt8186/ipc.c:77: error: ‘ipc_cmd_hdr’ undeclared (first use in this function) sof/src/drivers/mediatek/mt8186/ipc.c:77: error: (Each undeclared identifier is reported only once sof/src/drivers/mediatek/mt8186/ipc.c:77: error: for each function it appears in.) sof/src/drivers/mediatek/mt8186/ipc.c:77: error: ‘hdr’ undeclared (first use in this function) CMakeFiles/sof.dir/build.make:714: recipe for target 'CMakeFiles/sof.dir/src/drivers/mediatek/mt8186/ipc.c.o' failed Signed-off-by: Tinghan Shen --- src/drivers/mediatek/mt8186/ipc.c | 2 +- src/drivers/mediatek/mt8195/ipc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/mediatek/mt8186/ipc.c b/src/drivers/mediatek/mt8186/ipc.c index 7240ef0fd..af3f1dd1a 100644 --- a/src/drivers/mediatek/mt8186/ipc.c +++ b/src/drivers/mediatek/mt8186/ipc.c @@ -74,7 +74,7 @@ void trigger_irq_to_host_req(void) enum task_state ipc_platform_do_cmd(struct ipc *ipc) { - ipc_cmd_hdr *hdr; + struct ipc_cmd_hdr *hdr; hdr = mailbox_validate(); ipc_cmd(hdr); diff --git a/src/drivers/mediatek/mt8195/ipc.c b/src/drivers/mediatek/mt8195/ipc.c index 29d4833eb..ee101be4f 100644 --- a/src/drivers/mediatek/mt8195/ipc.c +++ b/src/drivers/mediatek/mt8195/ipc.c @@ -73,7 +73,7 @@ void trigger_irq_to_host_req(void) enum task_state ipc_platform_do_cmd(struct ipc *ipc) { - ipc_cmd_hdr *hdr; + struct ipc_cmd_hdr *hdr; hdr = mailbox_validate(); ipc_cmd(hdr);