Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb63657e authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Vegard Nossum
Browse files

x86: unify pte_hidden



Unify and demacro pte_hidden.

Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

[rebased for mainline inclusion]
Signed-off-by: default avatarVegard Nossum <vegard.nossum@gmail.com>
parent 9d31c506
Loading
Loading
Loading
Loading
+2 −6
Original line number Original line Diff line number Diff line
@@ -317,13 +317,9 @@ static inline int pte_present(pte_t a)
	return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE);
	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(pte) & _PAGE_HIDDEN;
	return pte_flags(x) & _PAGE_HIDDEN;
#else
	return 0;
#endif
}
}


static inline int pmd_present(pmd_t pmd)
static inline int pmd_present(pmd_t pmd)