x86/pat: Do not compile stubbed functions when X86_PAT is off
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 26 Oct 2020 17:39:06 +0000 (18:39 +0100)
committerBorislav Petkov <bp@suse.de>
Wed, 14 Apr 2021 06:21:41 +0000 (08:21 +0200)
commit16854b567dff767e5ec5e6dc23021271136733a5
tree41a8fc54d9be75358325ffc17ef276d30f20c48b
parentf7b21a0e41171d22296b897dac6e4c41d2a3643c
x86/pat: Do not compile stubbed functions when X86_PAT is off

Those are already provided by linux/io.h as stubs.

The conflict remains invisible until someone would pull linux/io.h into
memtype.c. This fixes a build error when this file is used outside of
the kernel tree.

  [ bp: Massage commit message. ]

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/a9351615-7a0d-9d47-af65-d9e2fffe8192@siemens.com
arch/x86/mm/pat/memtype.c