Commit 56288863 authored by Jan Kiszka's avatar Jan Kiszka

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,asm}/io.h
into memtype.c.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent 6596e539
......@@ -771,6 +771,7 @@ void io_free_memtype(resource_size_t start, resource_size_t end)
free_memtype(start, end);
#ifdef CONFIG_X86_PAT
int arch_io_reserve_memtype_wc(resource_size_t start, resource_size_t size)
enum page_cache_mode type = _PAGE_CACHE_MODE_WC;
......@@ -784,6 +785,7 @@ void arch_io_free_memtype_wc(resource_size_t start, resource_size_t size)
io_free_memtype(start, start + size);
pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
unsigned long size, pgprot_t vma_prot)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment