s390/mm,pageattr: don't use pte_val()/pXd_val() as lvalue
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 21 Feb 2022 20:24:35 +0000 (21:24 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 1 Mar 2022 20:05:10 +0000 (21:05 +0100)
commit869a9dbc10d25c5544169209fd4284f1f570c233
treeed96bf80f23dae8fe5c2a0321a075b2480cc2d31
parent4a366f519a3c8883a6bc24efa710bc0e75bc3558
s390/mm,pageattr: don't use pte_val()/pXd_val() as lvalue

Convert pgtable code so pte_val()/pXd_val() aren't used as lvalue
anymore. This allows in later step to convert pte_val()/pXd_val() to
functions, which in turn makes it impossible to use these macros to
modify page table entries like they have been used before.

Therefore a construct like this:

        pte_val(*pte) = __pa(addr) | prot;

which would directly write into a page table, isn't possible anymore
with the last step of this series.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-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>
arch/s390/mm/pageattr.c