[PATCH] include/asm-generic/pgtable.h: fix sparse warnings
From: H Hartley Sweeten
Date: Thu Apr 16 2009 - 22:13:20 EST
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@xxxxxxxxxxxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/