* [PATCH][next] x86/mm: make function clear_non_loaded_ctxs static
@ 2017-12-03 16:53 Colin King
0 siblings, 0 replies; only message in thread
From: Colin King @ 2017-12-03 16:53 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H . Peter Anvin, x86, Andy Lutomirski
Cc: kernel-janitors, linux-kernel
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-03 16:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-03 16:53 [PATCH][next] x86/mm: make function clear_non_loaded_ctxs static Colin King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).