arm64: Add missing include of asm/cpufeature.h to asm/mmu.h
authorWill Deacon <will@kernel.org>
Thu, 2 Dec 2021 17:10:46 +0000 (17:10 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 6 Dec 2021 08:37:03 +0000 (08:37 +0000)
asm/mmu.h refers to cpus_have_const_cap() in the definition of
arm64_kernel_unmapped_at_el0() so include asm/cpufeature.h directly
rather than force all users of the header to do it themselves.

Signed-off-by: Will Deacon <will@kernel.org>
Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211202171048.26924-2-will@kernel.org
arch/arm64/include/asm/mmu.h

index e9c3085..48f8466 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef __ASSEMBLY__
 
 #include <linux/refcount.h>
+#include <asm/cpufeature.h>
 
 typedef struct {
        atomic64_t      id;