linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: fix build warning in try_to_unmap_cluster()
@ 2012-10-25  9:21 Jingoo Han
  0 siblings, 0 replies; only message in thread
From: Jingoo Han @ 2012-10-25  9:21 UTC (permalink / raw)
  To: 'Andrew Morton', linux-kernel
  Cc: linux-mm, 'Bob Liu', 'Jingoo Han'

Fix build warning in try_to_unmap_cluster() as below:

mm/rmap.c: In function 'try_to_unmap_cluster':
mm/rmap.c:1364:9: warning: unused variable 'pud' [-Wunused-variable]
mm/rmap.c:1363:9: warning: unused variable 'pgd' [-Wunused-variable]

This build warning is introduced by commit 0981230
"mm: introduce mm_find_pmd()".

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Bob Liu <lliubbo@gmail.com>
---
This patch is based on linux-next-20121025 code tree.

 mm/rmap.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/mm/rmap.c b/mm/rmap.c
index 6c686c2..98b100e 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1360,8 +1360,6 @@ static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount,
 		struct vm_area_struct *vma, struct page *check_page)
 {
 	struct mm_struct *mm = vma->vm_mm;
-	pgd_t *pgd;
-	pud_t *pud;
 	pmd_t *pmd;
 	pte_t *pte;
 	pte_t pteval;
-- 
1.7.1


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-25  9:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25  9:21 [PATCH] mm: fix build warning in try_to_unmap_cluster() Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox