From 6ddf6c0f40d1cc35dbf2227b916881a22b4a3eb2 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Fri, 14 Jul 2023 00:27:40 +0000 Subject: [PATCH] module_interface.h: add forward struct comp_dev and timestamp_data Fixes commit 9cc6454df6d2 ("module_adapter: Extend the module interface for endpoint devices") As the endpoint_ops methods use only pointers to these two objects, it's not necessary to make their entire object structure visible. However a forward declaration is required to make them known to endpoint_ops users and fix the following warning: ``` error: 'struct comp_dev' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] ``` Signed-off-by: Marc Herbert --- src/include/sof/audio/module_adapter/module/module_interface.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/sof/audio/module_adapter/module/module_interface.h b/src/include/sof/audio/module_adapter/module/module_interface.h index 0d020238a..3b915e797 100644 --- a/src/include/sof/audio/module_adapter/module/module_interface.h +++ b/src/include/sof/audio/module_adapter/module/module_interface.h @@ -67,6 +67,8 @@ struct output_stream_buffer { uint32_t size; /* size of data in the buffer */ }; +struct comp_dev; +struct timestamp_data; /** * \struct module_endpoint_ops * \brief Ops relevant only for the endpoint devices such as the host copier or DAI copier.