Skip to content

Commit d260884

Browse files
committed
boot-test: vmh: fix build and enable on ACE 2.0 and 3.0
Fix a recent VMH test build breakage and enable it on newer ACE platforms. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent bf7655c commit d260884

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

zephyr/test/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
if (CONFIG_ACE_VERSION_1_5)
2-
zephyr_library_sources_ifdef(CONFIG_SOF_BOOT_TEST
3-
vmh.c
4-
)
1+
if (CONFIG_ACE_VERSION_1_5 OR CONFIG_ACE_VERSION_2_0 OR CONFIG_ACE_VERSION_3_0)
2+
zephyr_library_sources_ifdef(CONFIG_SOF_BOOT_TEST
3+
vmh.c
4+
)
55
endif()
66

77
if (CONFIG_ACE_VERSION_3_0)

zephyr/test/vmh.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ static void test_vmh_multiple_allocs(struct vmh_heap *heap, int num_allocs,
110110
{
111111
void *ptrs[num_allocs];
112112
uint32_t alloc_size;
113-
bool success;
114113
int ret;
115114

116115
/* Perform multiple allocations */
@@ -192,7 +191,7 @@ static void test_vmh_alloc_free(bool allocating_continuously)
192191
/* Test case for vmh_alloc and vmh_free with and without config */
193192
static void test_heap_creation(void)
194193
{
195-
test_vmh_init_and_free_heap(NULL, 0, false, true);
194+
test_vmh_init_and_free_heap(NULL, false, true);
196195

197196
/* Try to setup with pre defined heap config */
198197
struct vmh_heap_config config = {0};
@@ -205,7 +204,7 @@ static void test_heap_creation(void)
205204

206205
config.block_bundles_table[1].number_of_blocks = 512;
207206

208-
test_vmh_init_and_free_heap(&config, 0, false, true);
207+
test_vmh_init_and_free_heap(&config, false, true);
209208
}
210209

211210
/* Test case for alloc/free on configured heap */

0 commit comments

Comments
 (0)