mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
s390/mm: Convert pgste_val() into function
Similar to all other *_val() functions convert the last remaining architecture specific mm primitive pgste_val() into a function. Add set_pgste_bit() and clear_pgste_bit() helper functions which allow to clear and set pgste bits. This is also similar to e.g. set_pte_bit() and other helper functions. Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
committed by
Vasily Gorbik
parent
bb2598c0d3
commit
94d553ce57
@@ -89,7 +89,10 @@ static inline unsigned long pgprot_val(pgprot_t pgprot)
|
||||
return pgprot.pgprot;
|
||||
}
|
||||
|
||||
#define pgste_val(x) ((x).pgste)
|
||||
static inline unsigned long pgste_val(pgste_t pgste)
|
||||
{
|
||||
return pgste.pgste;
|
||||
}
|
||||
|
||||
static inline unsigned long pte_val(pte_t pte)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user