diff --git a/include/zephyr/llext/llext.h b/include/zephyr/llext/llext.h index 9250ac495c..59a136ab5d 100644 --- a/include/zephyr/llext/llext.h +++ b/include/zephyr/llext/llext.h @@ -164,7 +164,7 @@ int llext_unload(struct llext **ext); * @retval NULL if no symbol found * @retval addr Address of symbol in memory if found */ -const void * const llext_find_sym(const struct llext_symtable *sym_table, const char *sym_name); +const void *llext_find_sym(const struct llext_symtable *sym_table, const char *sym_name); /** * @brief Call a function by name diff --git a/subsys/llext/llext.c b/subsys/llext/llext.c index 8222de5502..c92f49abd6 100644 --- a/subsys/llext/llext.c +++ b/subsys/llext/llext.c @@ -114,7 +114,7 @@ int llext_iterate(int (*fn)(struct llext *ext, void *arg), void *arg) return ret; } -const void * const llext_find_sym(const struct llext_symtable *sym_table, const char *sym_name) +const void *llext_find_sym(const struct llext_symtable *sym_table, const char *sym_name) { if (sym_table == NULL) { /* Built-in symbol table */