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 <[email protected]>
  • Loading branch information
softwarecki committed Mar 5, 2024
1 parent 0058a6d commit 589c508
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 @@ -68,8 +68,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->desc;
Expand Down Expand Up @@ -111,8 +110,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 @@ -197,7 +195,7 @@ uint32_t llext_manager_allocate_module(const struct comp_driver *drv,
for (unsigned int i = 0; i < ARRAY_SIZE(ctx->segment_size); i++)
ctx->segment_size[i] = mod->segment[i].flags.r.length * PAGE_SZ;

ret = llext_manager_load_module(module_id, mod, desc);
ret = llext_manager_load_module(module_id, mod);
if (ret < 0)
return 0;

Expand All @@ -223,7 +221,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 589c508

Please sign in to comment.