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:
Heiko Carstens
2025-03-04 09:14:32 +01:00
committed by Vasily Gorbik
parent bb2598c0d3
commit 94d553ce57
3 changed files with 39 additions and 26 deletions

View File

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