diff options
author | Borislav Petkov <bp@suse.de> | 2022-08-05 17:07:02 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-08-06 21:46:13 +0300 |
commit | 86af8230ce138e0423f43f6b104f3fa050aced6d (patch) | |
tree | 1982c2532a0b9bf56efbbae46fbc73b9c465bda2 /arch/x86/mm | |
parent | 9de1f9c8ca5100a02a2e271bdbde36202e251b4b (diff) | |
download | linux-86af8230ce138e0423f43f6b104f3fa050aced6d.tar.xz |
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: Borislav Petkov <bp@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20220805140702.31538-1-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/pat/set_memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c index 1abd5438f126..6a9043b6b8f6 100644 --- a/arch/x86/mm/pat/set_memory.c +++ b/arch/x86/mm/pat/set_memory.c @@ -1944,7 +1944,7 @@ int set_mce_nospec(unsigned long pfn) 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); } @@ -1954,7 +1954,7 @@ int clear_mce_nospec(unsigned long 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); #endif /* CONFIG_X86_64 */ |