Skip to content

Commit

Permalink
tests: kernel: mem_protect: mem_map: fix wrong include
Browse files Browse the repository at this point in the history
This test needs to include zephyr/kernel/mm/demand_paging.h, not
zephyr/kernel/mm.h, due to its use of k_mem_pin().

Signed-off-by: Henrik Brix Andersen <[email protected]>
  • Loading branch information
henrikbrixandersen committed Nov 23, 2023
1 parent eeb6bf7 commit 67ec329
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/kernel/mem_protect/mem_map/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
*/

#include <zephyr/ztest.h>
#include <zephyr/kernel/mm.h>
#include <zephyr/toolchain.h>
#include <mmu.h>
#include <zephyr/linker/sections.h>

#ifdef CONFIG_DEMAND_PAGING
#include <zephyr/kernel/mm/demand_paging.h>
#endif /* CONFIG_DEMAND_PAGING */

/* 32-bit IA32 page tables have no mechanism to restrict execution */
#if defined(CONFIG_X86) && !defined(CONFIG_X86_64) && !defined(CONFIG_X86_PAE)
#define SKIP_EXECUTE_TESTS
Expand Down

0 comments on commit 67ec329

Please sign in to comment.