aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2011-10-31 20:09:25 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-31 20:30:50 -0400
commit2f1da6421570d064a94e17190a4955c2df99794d (patch)
tree8d382dfd9a264aa698131d4ae2a345ba3fb25794 /mm
parente754d79d35f0b8612445a9bd7491c48d7317e3ad (diff)
mm/huge_memory.c: quiet sparse noise
Quiet the sparse noise: warning: symbol 'khugepaged_scan' was not declared. Should it be static? warning: context imbalance in 'khugepaged_scan_mm_slot' - unexpected unlock Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Rik van Riel <riel@redhat.com> Cc: Johannes Weiner <jweiner@redhat.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/huge_memory.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 6b072bdccf81..44f57631cd7c 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -89,7 +89,8 @@ struct khugepaged_scan {
89 struct list_head mm_head; 89 struct list_head mm_head;
90 struct mm_slot *mm_slot; 90 struct mm_slot *mm_slot;
91 unsigned long address; 91 unsigned long address;
92} khugepaged_scan = { 92};
93static struct khugepaged_scan khugepaged_scan = {
93 .mm_head = LIST_HEAD_INIT(khugepaged_scan.mm_head), 94 .mm_head = LIST_HEAD_INIT(khugepaged_scan.mm_head),
94}; 95};
95 96
@@ -2069,6 +2070,8 @@ static void collect_mm_slot(struct mm_slot *mm_slot)
2069 2070
2070static unsigned int khugepaged_scan_mm_slot(unsigned int pages, 2071static unsigned int khugepaged_scan_mm_slot(unsigned int pages,
2071 struct page **hpage) 2072 struct page **hpage)
2073 __releases(&khugepaged_mm_lock)
2074 __acquires(&khugepaged_mm_lock)
2072{ 2075{
2073 struct mm_slot *mm_slot; 2076 struct mm_slot *mm_slot;
2074 struct mm_struct *mm; 2077 struct mm_struct *mm;