mirror of https://github.com/thesofproject/sof.git
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 <adrian.warecki@intel.com>
This commit is contained in:
parent
73ab99e554
commit
9ffff145fe
|
@ -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 @@ e_text:
|
|||
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(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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue