Browse files

mm/thrash.c: quiet sparse noise

Quiet the following sparse noise:

warning: symbol 'swap_token_memcg' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <>
Cc: Rik van Riel <>
Cc: KOSAKI Motohiro <>
Cc: KAMEZAWA Hiroyuki <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
  • Loading branch information...
H Hartley Sweeten authored and torvalds committed Nov 1, 2011
1 parent 2d7d3eb commit 22d5368a0838c00ed0e3ec20e7ff8c6e46ba99ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 mm/thrash.c
@@ -29,7 +29,7 @@
static DEFINE_SPINLOCK(swap_token_lock);
struct mm_struct *swap_token_mm;
-struct mem_cgroup *swap_token_memcg;
+static struct mem_cgroup *swap_token_memcg;
static struct mem_cgroup *swap_token_memcg_from_mm(struct mm_struct *mm)

0 comments on commit 22d5368

Please sign in to comment.