include: arm64: Fix compile with default MMU off

If default config ARM_MMU is set to n, samples/tests will have
compilation error. This is because the arch/arm/aarch64/arm_mmu.h
is always included.

Signed-off-by: Henry Wang <Henry.Wang@arm.com>
This commit is contained in:
Henry Wang 2021-03-10 10:42:08 +08:00 committed by Anas Nashif
commit 542cd9bdbb

View file

@ -29,7 +29,9 @@
#include <arch/arm64/sys_io.h>
#include <arch/arm64/timer.h>
#include <arch/arm64/error.h>
#ifdef CONFIG_ARM_MMU
#include <arch/arm64/arm_mmu.h>
#endif
#include <arch/arm64/thread_stack.h>
#include <arch/common/addr_types.h>
#include <arch/common/sys_bitops.h>
@ -72,7 +74,9 @@ typedef struct {
} k_mem_partition_attr_t;
struct arch_mem_domain {
#ifdef CONFIG_ARM_MMU
struct arm_mmu_ptables ptables;
#endif
sys_snode_t node;
};