Skip to content

Commit 9ffff14

Browse files
softwareckikv2019i
authored andcommitted
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>
1 parent 73ab99e commit 9ffff14

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/library_manager/llext_manager.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ static int llext_manager_load_data_from_storage(void __sparse_cache *vma, void *
7373
return memcpy_s((__sparse_force void *)vma, size, s_addr, size);
7474
}
7575

76-
static int llext_manager_load_module(uint32_t module_id, const struct sof_man_module *mod,
77-
struct sof_man_fw_desc *desc)
76+
static int llext_manager_load_module(uint32_t module_id, const struct sof_man_module *mod)
7877
{
7978
struct lib_manager_mod_ctx *ctx = lib_manager_get_mod_ctx(module_id);
8079
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
116115
return ret;
117116
}
118117

119-
static int llext_manager_unload_module(uint32_t module_id, const struct sof_man_module *mod,
120-
struct sof_man_fw_desc *desc)
118+
static int llext_manager_unload_module(uint32_t module_id, const struct sof_man_module *mod)
121119
{
122120
struct lib_manager_mod_ctx *ctx = lib_manager_get_mod_ctx(module_id);
123121
void __sparse_cache *va_base_text = (void __sparse_cache *)
@@ -258,7 +256,7 @@ uintptr_t llext_manager_allocate_module(struct processing_module *proc,
258256
return 0;
259257

260258
/* Map .text and the rest as .data */
261-
ret = llext_manager_load_module(module_id, mod, desc);
259+
ret = llext_manager_load_module(module_id, mod);
262260
if (ret < 0)
263261
return 0;
264262

@@ -285,7 +283,7 @@ int llext_manager_free_module(const uint32_t component_id)
285283
desc = lib_manager_get_library_module_desc(module_id);
286284
mod = (struct sof_man_module *)((char *)desc + SOF_MAN_MODULE_OFFSET(entry_index));
287285

288-
ret = llext_manager_unload_module(module_id, mod, desc);
286+
ret = llext_manager_unload_module(module_id, mod);
289287
if (ret < 0)
290288
return ret;
291289

0 commit comments

Comments
 (0)