[PATCH 1/6] x86/mm/kaiser: Add some static

From: Peter Zijlstra
Date: Wed Nov 29 2017 - 05:37:30 EST


These fuctions are only used in this TU, make em static.

Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
---
arch/x86/mm/kaiser.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

--- a/arch/x86/mm/kaiser.c
+++ b/arch/x86/mm/kaiser.c
@@ -260,8 +260,8 @@ static pte_t *kaiser_shadow_pagetable_wa
* the user (shadow) page tables. This may need to allocate page
* table pages.
*/
-int kaiser_add_user_map(const void *__start_addr, unsigned long size,
- unsigned long flags)
+static int kaiser_add_user_map(const void *__start_addr, unsigned long size,
+ unsigned long flags)
{
unsigned long start_addr = (unsigned long)__start_addr;
unsigned long address = start_addr & PAGE_MASK;
@@ -310,9 +310,9 @@ int kaiser_add_user_map(const void *__st
return 0;
}

-int kaiser_add_user_map_ptrs(const void *__start_addr,
- const void *__end_addr,
- unsigned long flags)
+static int kaiser_add_user_map_ptrs(const void *__start_addr,
+ const void *__end_addr,
+ unsigned long flags)
{
return kaiser_add_user_map(__start_addr,
__end_addr - __start_addr,