llext: make loader parameters "const"

LLEXT loader parameters are input-only, make them "const."

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2024-08-29 12:47:25 +02:00 committed by Anas Nashif
parent 1a16ace775
commit 5332393066
4 changed files with 4 additions and 4 deletions

View file

@ -177,7 +177,7 @@ int llext_iterate(int (*fn)(struct llext *ext, void *arg), void *arg);
* @retval -ENOTSUP Unsupported ELF features
*/
int llext_load(struct llext_loader *loader, const char *name, struct llext **ext,
struct llext_load_param *ldr_parm);
const struct llext_load_param *ldr_parm);
/**
* @brief Unload an extension

View file

@ -139,7 +139,7 @@ const void *llext_find_sym(const struct llext_symtable *sym_table, const char *s
}
int llext_load(struct llext_loader *ldr, const char *name, struct llext **ext,
struct llext_load_param *ldr_parm)
const struct llext_load_param *ldr_parm)
{
int ret;

View file

@ -585,7 +585,7 @@ static int llext_copy_symbols(struct llext_loader *ldr, struct llext *ext,
* Load a valid ELF as an extension
*/
int do_llext_load(struct llext_loader *ldr, struct llext *ext,
struct llext_load_param *ldr_parm)
const struct llext_load_param *ldr_parm)
{
int ret;

View file

@ -50,7 +50,7 @@ static inline void llext_free(void *ptr)
*/
int do_llext_load(struct llext_loader *ldr, struct llext *ext,
struct llext_load_param *ldr_parm);
const struct llext_load_param *ldr_parm);
static inline const char *llext_string(struct llext_loader *ldr, struct llext *ext,
enum llext_mem mem_idx, unsigned int idx)