Skip to content

Commit

Permalink
llext_manager: Remove unused desc parameter
Browse files Browse the repository at this point in the history
Removed unused desc parameter from llext_manager_load_module and
llext_manager_unload_module functions.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
  • Loading branch information
softwarecki committed Mar 11, 2024
1 parent 87539c2 commit a8b2b3f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/library_manager/llext_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 *)
Expand Down Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit a8b2b3f

Please sign in to comment.