diff options
author | Benjamin Thiel <b.thiel@posteo.de> | 2020-03-27 11:26:06 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-03-27 11:26:06 +0100 |
commit | 5bacdc0982f2b343afa5adbb80517d3392a7e357 (patch) | |
tree | 30715c35be0c0066084539cbb4ca82acab52d19d /arch/x86/include | |
parent | 860f89e6182479149bb6c27f5f44989b0628a176 (diff) | |
download | linux-5bacdc0982f2b343afa5adbb80517d3392a7e357.tar.bz2 |
x86/mm/set_memory: Fix -Wmissing-prototypes warnings
Add missing includes and move prototypes into the header set_memory.h in
order to fix -Wmissing-prototypes warnings.
[ bp: Add ifdeffery around arch_invalidate_pmem() ]
Signed-off-by: Benjamin Thiel <b.thiel@posteo.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200320145028.6013-1-b.thiel@posteo.de
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/set_memory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/set_memory.h b/arch/x86/include/asm/set_memory.h index 64c3dce374e5..950532ccbc4a 100644 --- a/arch/x86/include/asm/set_memory.h +++ b/arch/x86/include/asm/set_memory.h @@ -46,6 +46,8 @@ 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); int set_memory_np_noalias(unsigned long addr, int numpages); +int set_memory_nonglobal(unsigned long addr, int numpages); +int set_memory_global(unsigned long addr, int numpages); int set_pages_array_uc(struct page **pages, int addrinarray); int set_pages_array_wc(struct page **pages, int addrinarray); |