From 7bc4d14cfcac944eb83d018ba9336572fd7dc39f Mon Sep 17 00:00:00 2001 From: Tom Burdick Date: Mon, 14 Jul 2025 07:32:25 -0500 Subject: [PATCH] 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 --- include/zephyr/llext/llext.h | 1 - subsys/llext/llext_load.c | 8 -------- 2 files changed, 9 deletions(-) diff --git a/include/zephyr/llext/llext.h b/include/zephyr/llext/llext.h index 0f5ff8c8f88..a0d1cdc5e40 100644 --- a/include/zephyr/llext/llext.h +++ b/include/zephyr/llext/llext.h @@ -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 */ diff --git a/subsys/llext/llext_load.c b/subsys/llext/llext_load.c index c4c0b26c35e..61f55784d63 100644 --- a/subsys/llext/llext_load.c +++ b/subsys/llext/llext_load.c @@ -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) {