diff mbox series

[1/3] arm: include asm/cacheflush.h in asm/hugetlb.h

Message ID 4b055d0-7b2e-72bf-9b9d-8f3f1cd312d0@google.com (mailing list archive)
State New
Headers show
Series arch: include asm/cacheflush.h in asm/hugetlb.h | expand

Commit Message

Hugh Dickins Aug. 14, 2023, 4:52 a.m. UTC
PG_dcache_clean is used in asm/hugetlb.h but defined in asm/cacheflush.h:
builds rely on an accident of that being included via linux/mempolicy.h,
but better include it directly (like arch/sh/include/asm/hugetlb.h does).

Signed-off-by: Hugh Dickins <hughd@google.com>
---
 arch/arm/include/asm/hugetlb.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/arch/arm/include/asm/hugetlb.h b/arch/arm/include/asm/hugetlb.h
index d02d6ca88e92..a3a82b7158d4 100644
--- a/arch/arm/include/asm/hugetlb.h
+++ b/arch/arm/include/asm/hugetlb.h
@@ -10,6 +10,7 @@ 
 #ifndef _ASM_ARM_HUGETLB_H
 #define _ASM_ARM_HUGETLB_H
 
+#include <asm/cacheflush.h>
 #include <asm/page.h>
 #include <asm/hugetlb-3level.h>
 #include <asm-generic/hugetlb.h>