OSDN Git Service

powerpc/32: drop get_pteptr()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 9 Jan 2020 08:25:26 +0000 (08:25 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 25 Feb 2020 23:34:41 +0000 (10:34 +1100)
commit2efc7c085f05870eda6f29ac71eeb83f3bd54415
treee1acd63a7ad7b0cc6a3fd7cf677cff72ff1e95fc
parent0b1c524caaae2428b20e714297243e5551251eb5
powerpc/32: drop get_pteptr()

Commit 8d30c14cab30 ("powerpc/mm: Rework I$/D$ coherency (v3)") and
commit 90ac19a8b21b ("[POWERPC] Abolish iopa(), mm_ptov(),
io_block_mapping() from arch/powerpc") removed the use of get_pteptr()
outside of mm/pgtable_32.c

In mm/pgtable_32.c, the only user of get_pteptr() is change_page_attr()
which operates on kernel context and on lowmem pages only.

Make virt_to_kpte() available outside of mm/mem.c and use it instead
of get_pteptr(), and drop get_pteptr()

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/788378c6c3ba5c5298caab7c7f95e6c3c88244b8.1578558199.git.christophe.leroy@c-s.fr
arch/powerpc/include/asm/pgtable.h
arch/powerpc/mm/mem.c
arch/powerpc/mm/pgtable_32.c