llext: remove llext_list()

llext_list() is an exported function that returns a pointer to the
llext internal extension list. That list should only be accessible
directly inside llext, while holding a lock. Remove the function.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2023-11-20 15:19:58 +01:00 committed by Anas Nashif
commit 7af6dea799
2 changed files with 1 additions and 12 deletions

View file

@ -23,11 +23,6 @@ static const char ELF_MAGIC[] = {0x7f, 'E', 'L', 'F'};
static sys_slist_t _llext_list = SYS_SLIST_STATIC_INIT(&_llext_list);
sys_slist_t *llext_list(void)
{
return &_llext_list;
}
ssize_t llext_find_section(struct llext_loader *ldr, const char *search_name)
{
elf_shdr_t *shdr;
@ -57,8 +52,7 @@ ssize_t llext_find_section(struct llext_loader *ldr, const char *search_name)
struct llext *llext_by_name(const char *name)
{
sys_slist_t *mlist = llext_list();
sys_snode_t *node = sys_slist_peek_head(mlist);
sys_snode_t *node = sys_slist_peek_head(&_llext_list);
struct llext *ext = CONTAINER_OF(node, struct llext, _llext_list);
while (node != NULL) {