[PATCH 1/8] arm: armv8: mmu: Prepare for common.h removal
Paul Barker
paul.barker.ct at bp.renesas.com
Wed Nov 1 21:05:52 CET 2023
If <common.h> won't be included before <asm/armv8/mmu.h>, we need to
ensure that we have the required type definitions.
Signed-off-by: Paul Barker <paul.barker.ct at bp.renesas.com>
---
arch/arm/include/asm/armv8/mmu.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/include/asm/armv8/mmu.h b/arch/arm/include/asm/armv8/mmu.h
index 19a9e112a434..4f0adb07325f 100644
--- a/arch/arm/include/asm/armv8/mmu.h
+++ b/arch/arm/include/asm/armv8/mmu.h
@@ -118,6 +118,8 @@
#define HCR_EL2_E2H_BIT 34
#ifndef __ASSEMBLY__
+#include <linux/types.h>
+
static inline void set_ttbr_tcr_mair(int el, u64 table, u64 tcr, u64 attr)
{
asm volatile("dsb sy");
base-commit: a803f87202aa48974bdff4d8100464a8288931e4
--
2.39.2
More information about the U-Boot
mailing list