Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: Add missing include of asm/cpufeature.h to asm/mmu.h

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

authored by

Will Deacon and committed by
Marc Zyngier
7e04f059 d58071a8

+1
+1
arch/arm64/include/asm/mmu.h
··· 15 15 #ifndef __ASSEMBLY__ 16 16 17 17 #include <linux/refcount.h> 18 + #include <asm/cpufeature.h> 18 19 19 20 typedef struct { 20 21 atomic64_t id;