[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BD79186B4FD85F4B8E60E381CAEE1909015F904E@mi8nycmail19.Mi8.com>
Date: Thu, 16 Apr 2009 22:12:18 -0400
From: "H Hartley Sweeten" <hartleys@...ionengravers.com>
To: <linux-kernel@...r.kernel.org>
Subject: [PATCH] include/asm-generic/pgtable.h: fix sparse warnings
Fix a number of sparse warnings due to macro expansion.
warning: symbol '__pte' shadows an earlier one
These sparse warning show up in the following sources:
mm/fremap.c
mm/mremap.c
mm/memory.c
mm/rmap.c
This trivial patch fixes all the warnings.
Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
---
diff --git a/include/asm-generic/pgtable.h
b/include/asm-generic/pgtable.h
index 8e6d0ca..c51b173 100644
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
@@ -53,9 +53,9 @@
#ifndef __HAVE_ARCH_PTEP_GET_AND_CLEAR
#define ptep_get_and_clear(__mm, __address, __ptep)
\
({
\
- pte_t __pte = *(__ptep);
\
+ pte_t ___pte = *(__ptep);
\
pte_clear((__mm), (__address), (__ptep));
\
- __pte;
\
+ ___pte;
\
})
#endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists