aboutsummaryrefslogtreecommitdiffstats
path: root/mm/ksm.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-04-05 19:22:01 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-06 00:36:24 -0400
commitc01f0b54efb1519f513089984c163ad3f6fea6eb (patch)
treed958c757bce8cae45ee19da1e72133e23e239a2e /mm/ksm.c
parentf9e13c0a5a33d1eaec374d6d4dab53a4f72756a0 (diff)
mm/ksm.c: make stable_node_dup() static
stable_node_dup() is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: mm/ksm.c:1321:13: warning: symbol 'stable_node_dup' was not declared. Should it be static? Link: http://lkml.kernel.org/r/20180206221005.12642-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/ksm.c')
-rw-r--r--mm/ksm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/ksm.c b/mm/ksm.c
index adb5f991da8e..7596e14bc233 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -1318,10 +1318,10 @@ bool is_page_sharing_candidate(struct stable_node *stable_node)
1318 return __is_page_sharing_candidate(stable_node, 0); 1318 return __is_page_sharing_candidate(stable_node, 0);
1319} 1319}
1320 1320
1321struct page *stable_node_dup(struct stable_node **_stable_node_dup, 1321static struct page *stable_node_dup(struct stable_node **_stable_node_dup,
1322 struct stable_node **_stable_node, 1322 struct stable_node **_stable_node,
1323 struct rb_root *root, 1323 struct rb_root *root,
1324 bool prune_stale_stable_nodes) 1324 bool prune_stale_stable_nodes)
1325{ 1325{
1326 struct stable_node *dup, *found = NULL, *stable_node = *_stable_node; 1326 struct stable_node *dup, *found = NULL, *stable_node = *_stable_node;
1327 struct hlist_node *hlist_safe; 1327 struct hlist_node *hlist_safe;