Re: [PATCH] x86: pat: Do not compile stubbed functions when X86_PAT is off

From: Thomas Gleixner
Date: Fri Feb 07 2020 - 09:50:58 EST


Jan Kiszka <jan.kiszka@xxxxxxxxxxx> writes:

> From: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>
>
> Those are already provided by linux/io.h as stubs.
>
> The conflict remains invisible until someone would pull {linux,asm}/io.h
> into memtype.c.

Err. memtype.c includes asm/io.h already. So it's just the PAT=n case
which is broken.

Thanks,

tglx