summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/set_memory.h
diff options
context:
space:
mode:
authorMichael Kelley <mhklinux@outlook.com>2024-01-15 18:20:07 -0800
committerWei Liu <wei.liu@kernel.org>2024-03-01 08:31:41 +0000
commit030ad7af94371f1faeecfc12dda296d8b5a17ef8 (patch)
treefa8cd1ffafe42dc6f5c92d53e48b0cff58780957 /arch/x86/include/asm/set_memory.h
parent9fef276f9f416a1e85eb48d3bd38e6018a220bf5 (diff)
x86/mm: Regularize set_memory_p() parameters and make non-static
set_memory_p() is currently static. It has parameters that don't match set_memory_p() under arch/powerpc and that aren't congruent with the other set_memory_* functions. There's no good reason for the difference. Fix this by making the parameters consistent, and update the one existing call site. Make the function non-static and add it to include/asm/set_memory.h so that it is completely parallel to set_memory_np() and is usable in other modules. No functional change. Signed-off-by: Michael Kelley <mhklinux@outlook.com> Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Link: https://lore.kernel.org/r/20240116022008.1023398-3-mhklinux@outlook.com Signed-off-by: Wei Liu <wei.liu@kernel.org> Message-ID: <20240116022008.1023398-3-mhklinux@outlook.com>
Diffstat (limited to 'arch/x86/include/asm/set_memory.h')
-rw-r--r--arch/x86/include/asm/set_memory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/set_memory.h b/arch/x86/include/asm/set_memory.h
index a5e89641bd2d..9aee31862b4a 100644
--- a/arch/x86/include/asm/set_memory.h
+++ b/arch/x86/include/asm/set_memory.h
@@ -47,6 +47,7 @@ int set_memory_uc(unsigned long addr, int numpages);
int set_memory_wc(unsigned long addr, int numpages);
int set_memory_wb(unsigned long addr, int numpages);
int set_memory_np(unsigned long addr, int numpages);
+int set_memory_p(unsigned long addr, int numpages);
int set_memory_4k(unsigned long addr, int numpages);
int set_memory_encrypted(unsigned long addr, int numpages);
int set_memory_decrypted(unsigned long addr, int numpages);