Skip to content

Commit 7bc4d14

Browse files
teburdnashif
authored andcommitted
llext: Drop unused memory domain member
Not sure why this vestigal struct member was here at this point (18 months ago...) but its unused and was causing problems for certain parts. Signed-off-by: Tom Burdick <[email protected]>
1 parent 35044b6 commit 7bc4d14

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

include/zephyr/llext/llext.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ struct llext {
8383

8484
#ifdef CONFIG_USERSPACE
8585
struct k_mem_partition mem_parts[LLEXT_MEM_PARTITIONS];
86-
struct k_mem_domain mem_domain;
8786
#endif
8887

8988
/** @endcond */

subsys/llext/llext_load.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -747,14 +747,6 @@ int do_llext_load(struct llext_loader *ldr, struct llext *ext,
747747
goto out;
748748
}
749749

750-
#ifdef CONFIG_USERSPACE
751-
ret = k_mem_domain_init(&ext->mem_domain, 0, NULL);
752-
if (ret != 0) {
753-
LOG_ERR("Failed to initialize extenion memory domain %d", ret);
754-
goto out;
755-
}
756-
#endif
757-
758750
LOG_DBG("Finding ELF tables...");
759751
ret = llext_find_tables(ldr, ext);
760752
if (ret != 0) {

0 commit comments

Comments
 (0)