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>
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)