summaryrefslogtreecommitdiff
path: root/arch/x86/mm/pat/set_memory.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2025-03-04 13:23:56 +0300
committerIngo Molnar <mingo@kernel.org>2025-03-04 22:29:43 +0300
commitf3a3c29b8de8306ae79c60d3504e435af089f8e2 (patch)
tree8bcd8cf25eee9016b865c384b10e4bdb215d8ff6 /arch/x86/mm/pat/set_memory.c
parent71c2ff150f34904f693c654ee8c55c996629abb7 (diff)
parent95c4cc5a585400982ae5b3bf9e3be6de71768376 (diff)
downloadlinux-f3a3c29b8de8306ae79c60d3504e435af089f8e2.tar.xz
Merge branch 'x86/headers' into x86/core, to pick up dependent commits
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm/pat/set_memory.c')
-rw-r--r--arch/x86/mm/pat/set_memory.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c
index d1740159029e..72405d315b41 100644
--- a/arch/x86/mm/pat/set_memory.c
+++ b/arch/x86/mm/pat/set_memory.c
@@ -2148,19 +2148,6 @@ static inline int cpa_clear_pages_array(struct page **pages, int numpages,
CPA_PAGES_ARRAY, pages);
}
-/*
- * __set_memory_prot is an internal helper for callers that have been passed
- * a pgprot_t value from upper layers and a reservation has already been taken.
- * If you want to set the pgprot to a specific page protocol, use the
- * set_memory_xx() functions.
- */
-int __set_memory_prot(unsigned long addr, int numpages, pgprot_t prot)
-{
- return change_page_attr_set_clr(&addr, numpages, prot,
- __pgprot(~pgprot_val(prot)), 0, 0,
- NULL);
-}
-
int _set_memory_uc(unsigned long addr, int numpages)
{
/*