From a8b2b3f4dced2d7114d94cc935b4cf058e7f8c3e Mon Sep 17 00:00:00 2001 From: Adrian Warecki Date: Thu, 29 Feb 2024 10:21:47 +0100 Subject: [PATCH] llext_manager: Remove unused desc parameter Removed unused desc parameter from llext_manager_load_module and llext_manager_unload_module functions. Signed-off-by: Adrian Warecki --- src/library_manager/llext_manager.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/library_manager/llext_manager.c b/src/library_manager/llext_manager.c index b825edba5833..beba9a461e5b 100644 --- a/src/library_manager/llext_manager.c +++ b/src/library_manager/llext_manager.c @@ -73,8 +73,7 @@ static int llext_manager_load_data_from_storage(void __sparse_cache *vma, void * return memcpy_s((__sparse_force void *)vma, size, s_addr, size); } -static int llext_manager_load_module(uint32_t module_id, const struct sof_man_module *mod, - struct sof_man_fw_desc *desc) +static int llext_manager_load_module(uint32_t module_id, const struct sof_man_module *mod) { struct lib_manager_mod_ctx *ctx = lib_manager_get_mod_ctx(module_id); uint8_t *load_base = (uint8_t *)ctx->base_addr; @@ -116,8 +115,7 @@ static int llext_manager_load_module(uint32_t module_id, const struct sof_man_mo return ret; } -static int llext_manager_unload_module(uint32_t module_id, const struct sof_man_module *mod, - struct sof_man_fw_desc *desc) +static int llext_manager_unload_module(uint32_t module_id, const struct sof_man_module *mod) { struct lib_manager_mod_ctx *ctx = lib_manager_get_mod_ctx(module_id); void __sparse_cache *va_base_text = (void __sparse_cache *) @@ -258,7 +256,7 @@ uintptr_t llext_manager_allocate_module(const struct processing_module *proc, return 0; /* Map .text and the rest as .data */ - ret = llext_manager_load_module(module_id, mod, desc); + ret = llext_manager_load_module(module_id, mod); if (ret < 0) return 0; @@ -285,7 +283,7 @@ int llext_manager_free_module(const uint32_t component_id) desc = lib_manager_get_library_module_desc(module_id); mod = (struct sof_man_module *)((char *)desc + SOF_MAN_MODULE_OFFSET(entry_index)); - ret = llext_manager_unload_module(module_id, mod, desc); + ret = llext_manager_unload_module(module_id, mod); if (ret < 0) return ret;