Skip to content

llext: Drop unused memory domain member #93099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion include/zephyr/llext/llext.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ struct llext {

#ifdef CONFIG_USERSPACE
struct k_mem_partition mem_parts[LLEXT_MEM_PARTITIONS];
struct k_mem_domain mem_domain;
#endif

/** @endcond */
Expand Down
8 changes: 0 additions & 8 deletions subsys/llext/llext_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,14 +747,6 @@ int do_llext_load(struct llext_loader *ldr, struct llext *ext,
goto out;
}

#ifdef CONFIG_USERSPACE
ret = k_mem_domain_init(&ext->mem_domain, 0, NULL);
if (ret != 0) {
LOG_ERR("Failed to initialize extenion memory domain %d", ret);
goto out;
}
#endif

LOG_DBG("Finding ELF tables...");
ret = llext_find_tables(ldr, ext);
if (ret != 0) {
Expand Down