Commit 86af8230 authored by Borislav Petkov's avatar Borislav Petkov Committed by Ingo Molnar

x86/mm: Rename set_memory_present() to set_memory_p()

Have it adhere to the naming convention for those helpers.

No functional changes.
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20220805140702.31538-1-bp@alien8.deSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 9de1f9c8
...@@ -1944,7 +1944,7 @@ int set_mce_nospec(unsigned long pfn) ...@@ -1944,7 +1944,7 @@ int set_mce_nospec(unsigned long pfn)
return rc; return rc;
} }
static int set_memory_present(unsigned long *addr, int numpages) static int set_memory_p(unsigned long *addr, int numpages)
{ {
return change_page_attr_set(addr, numpages, __pgprot(_PAGE_PRESENT), 0); return change_page_attr_set(addr, numpages, __pgprot(_PAGE_PRESENT), 0);
} }
...@@ -1954,7 +1954,7 @@ int clear_mce_nospec(unsigned long pfn) ...@@ -1954,7 +1954,7 @@ int clear_mce_nospec(unsigned long pfn)
{ {
unsigned long addr = (unsigned long) pfn_to_kaddr(pfn); unsigned long addr = (unsigned long) pfn_to_kaddr(pfn);
return set_memory_present(&addr, 1); return set_memory_p(&addr, 1);
} }
EXPORT_SYMBOL_GPL(clear_mce_nospec); EXPORT_SYMBOL_GPL(clear_mce_nospec);
#endif /* CONFIG_X86_64 */ #endif /* CONFIG_X86_64 */
......
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