Re: [PATCH 3/7] x86/mm: Stop pretending pgtable_l5_enabled is a variable

From: Thomas Gleixner
Date: Sat May 19 2018 - 03:50:01 EST


On Fri, 18 May 2018, Kirill A. Shutemov wrote:

> pgtable_l5_enabled is defined using cpu_feature_enabled() but we refer
> to it as a variable. This is misleading.
>
> Make pgtable_l5_enabled() a function.
>
> We cannot literally define it as a function due to circular dependencies
> between header files. Function-alike macros is close enough.
>
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>