s390/kasan: use set_pXe_bit() for pgtable entries setup
authorAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 16 Dec 2022 18:07:38 +0000 (19:07 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 13 Jan 2023 13:15:05 +0000 (14:15 +0100)
commitbf2b4af2ed23b9548ea7f24613fd905f56ec7910
tree8aa00782e8dbed53205117dbfd7e26bff9b8cf33
parente148071b9f7711cb68c6d89c5b2033ee5a8add93
s390/kasan: use set_pXe_bit() for pgtable entries setup

Convert setup of pgtable entries to use set_pXe_bit()
helpers as the preferred way in MM code.

Locally introduce pgprot_clear_bit() helper, which is
strictly speaking a generic function. However, it is
only x86 pgprot_clear_protnone_bits() helper, which
does a similar thing, so do not make it public.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/mm/kasan_init.c