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

From: Jan Kiszka
Date: Fri Feb 07 2020 - 10:02:49 EST


On 07.02.20 15:50, Thomas Gleixner wrote:
> 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.

Ah, right, my comment must read "until someone would pull linux/io.h"
because only that header carries the stubs.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux