summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/memtype.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-04-08 17:27:43 +0200
committerBorislav Petkov <bp@suse.de>2020-04-20 12:39:17 +0200
commit7fa3e10f0f3646108a1018004d0f571c3222dc9f (patch)
tree2b354bc252096a5d2f282d8d2eeddd8f0de2b089 /arch/x86/include/asm/memtype.h
parent1f6f655e01adebf5bd5e6c3da2e843c104ded051 (diff)
x86/mm: Move pgprot2cachemode out of line
This helper is only used by x86 low-level MM code. Also remove the entirely pointless __pte2cachemode_tbl export as that symbol can be marked static now. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20200408152745.1565832-3-hch@lst.de
Diffstat (limited to 'arch/x86/include/asm/memtype.h')
-rw-r--r--arch/x86/include/asm/memtype.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/memtype.h b/arch/x86/include/asm/memtype.h
index 1e4e99b40711..9ca760e430b9 100644
--- a/arch/x86/include/asm/memtype.h
+++ b/arch/x86/include/asm/memtype.h
@@ -25,5 +25,6 @@ extern void memtype_free_io(resource_size_t start, resource_size_t end);
extern bool pat_pfn_immune_to_uc_mtrr(unsigned long pfn);
bool x86_has_pat_wp(void);
+enum page_cache_mode pgprot2cachemode(pgprot_t pgprot);
#endif /* _ASM_X86_MEMTYPE_H */