[PATCH 1/3] arm64: Add missing include of asm/cpufeature.h to asm/mmu.h

Fuad Tabba tabba at google.com
Fri Dec 3 00:24:59 PST 2021


Hi Will,

On Thu, Dec 2, 2021 at 5:10 PM Will Deacon <will at kernel.org> wrote:
>
> 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.

Simplifies the code and makes it cleaner.

I tested this code (the complete patch series) as well and it ran fine.

Tested-by: Fuad Tabba <tabba at google.com>
Reviewed-by: Fuad Tabba <tabba at google.com>

Cheers,
/fuad


> Signed-off-by: Will Deacon <will at kernel.org>
> ---
>  arch/arm64/include/asm/mmu.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/include/asm/mmu.h b/arch/arm64/include/asm/mmu.h
> index e9c30859f80c..48f8466a4be9 100644
> --- a/arch/arm64/include/asm/mmu.h
> +++ b/arch/arm64/include/asm/mmu.h
> @@ -15,6 +15,7 @@
>  #ifndef __ASSEMBLY__
>
>  #include <linux/refcount.h>
> +#include <asm/cpufeature.h>
>
>  typedef struct {
>         atomic64_t      id;
> --
> 2.34.0.rc2.393.gf8c9666880-goog
>



More information about the linux-arm-kernel mailing list