Messages in this thread Patch in this message | | | From | Colin King <> | Subject | [PATCH][next] x86/mm: make function clear_non_loaded_ctxs static | Date | Sun, 3 Dec 2017 16:53:16 +0000 |
| |
From: Colin Ian King <colin.king@canonical.com>
The function clear_non_loaded_ctxs is local to the source and does not need to be in global scope, so make it static.
Cleans up sparse warning: arch/x86/mm/tlb.c:37:6: warning: symbol 'clear_non_loaded_ctxs' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com> --- arch/x86/mm/tlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index f75b6eb47a6d..6ecbd8fc292e 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -34,7 +34,7 @@ * necessary invalidation by clearing out the 'ctx_id' which * forces a TLB flush when the context is loaded. */ -void clear_non_loaded_ctxs(void) +static void clear_non_loaded_ctxs(void) { u16 asid; -- 2.14.1
| |