From fb882ca39d9d5882958103171e56d321b7138a8a Mon Sep 17 00:00:00 2001 From: Jean-Claude Graf Date: Tue, 3 Dec 2024 17:38:53 +0100 Subject: [PATCH] Fix correct usage of vunmap's order argument Signed-off-by: Jean-Claude Graf --- tests/unittests.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unittests.c b/tests/unittests.c index 971e6d5f..451061b5 100644 --- a/tests/unittests.c +++ b/tests/unittests.c @@ -93,7 +93,9 @@ static unsigned long test_kernel_pmm_vmm_stress_test(void *arg) { for (int j = 0; j < KT2_CHUNKS; j++) { mfn_t mfn; - ASSERT(!vunmap_kern(_ptr(blocks[j]), &mfn, PAGE_ORDER_4K)); + unsigned int order; + ASSERT(!vunmap_kern(_ptr(blocks[j]), &mfn, &order)); + ASSERT(order == PAGE_ORDER_4K); put_free_frame(mfn); } }