drivers: mediatek: fix build error

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 <tinghan.shen@mediatek.com>
This commit is contained in:
Tinghan Shen 2022-05-12 18:07:58 +08:00 committed by Liam Girdwood
parent 2e3823ac34
commit 42e0d5e0b5
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);