x86: unify pte_hidden
authorJeremy Fitzhardinge <jeremy@goop.org>
Fri, 6 Feb 2009 21:05:56 +0000 (13:05 -0800)
committerVegard Nossum <vegard.nossum@gmail.com>
Mon, 15 Jun 2009 13:49:20 +0000 (15:49 +0200)
Unify and demacro pte_hidden.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
[rebased for mainline inclusion]
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
arch/x86/include/asm/pgtable.h

index c5a0807..3cc06e3 100644 (file)
@@ -317,13 +317,9 @@ static inline int pte_present(pte_t a)
        return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE);
 }
 
-static inline int pte_hidden(pte_t x)
+static inline int pte_hidden(pte_t pte)
 {
-#ifdef CONFIG_KMEMCHECK
-       return pte_flags(x) & _PAGE_HIDDEN;
-#else
-       return 0;
-#endif
+       return pte_flags(pte) & _PAGE_HIDDEN;
 }
 
 static inline int pmd_present(pmd_t pmd)