From 3ae92b498f480d96f32484f77cf03ee3cd010c51 Mon Sep 17 00:00:00 2001 From: Adrian Warecki Date: Thu, 29 Feb 2024 13:11:35 +0100 Subject: [PATCH] modules: Remove unused module_entry_point from module_data The value assigned to the module_entry_point field in the module_data structure wasn't used anywhere. This field has been removed. Signed-off-by: Adrian Warecki --- src/audio/module_adapter/module/modules.c | 4 ++-- src/include/module/module/base.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/audio/module_adapter/module/modules.c b/src/audio/module_adapter/module/modules.c index 0e1dcd958836..f2416be0ac4a 100644 --- a/src/audio/module_adapter/module/modules.c +++ b/src/audio/module_adapter/module/modules.c @@ -78,7 +78,7 @@ static int modules_init(struct processing_module *mod) comp_err(dev, "modules_init(), lib_manager_allocate_module() failed!"); return -EINVAL; } - md->module_entry_point = module_entry_point; + comp_info(dev, "modules_init() start"); uint32_t module_id = IPC4_MOD_ID(dev->ipc_config.id); @@ -114,7 +114,7 @@ static int modules_init(struct processing_module *mod) mod_buildinfo->api_version_number.full == SOF_MODULE_API_CURRENT_VERSION) { /* If start agent for sof loadable */ is_native_sof = true; - md->ops = native_system_agent_start(md->module_entry_point, module_id, + md->ops = native_system_agent_start(module_entry_point, module_id, instance_id, 0, log_handle, &mod_cfg); } else return -ENOEXEC; diff --git a/src/include/module/module/base.h b/src/include/module/module/base.h index c04efbd1bbd0..269bc301e04d 100644 --- a/src/include/module/module/base.h +++ b/src/include/module/module/base.h @@ -59,7 +59,6 @@ struct module_data { const struct module_interface *ops; /**< module specific operations */ struct module_memory memory; /**< memory allocated by module */ struct module_processing_data mpd; /**< shared data comp <-> module */ - uint32_t module_entry_point; /**