Current platform specific pxdp_get() helpers are exact same as the default ones defined in the generic MM header (include/linux/pgtable.h) thus making them redundant. Just add required forward declarations. Cc: Alexander Gordeev Cc: Gerald Schaefer Cc: linux-s390@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org Signed-off-by: Anshuman Khandual --- arch/s390/include/asm/pgtable.h | 35 +++++---------------------------- 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index e882663a58e77..0a0b0ec42b624 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -25,6 +25,11 @@ #include #include +static inline pte_t ptep_get(const pte_t *ptep); +static inline pud_t pudp_get(const pud_t *pudp); +static inline p4d_t p4dp_get(const p4d_t *p4dp); +static inline pgd_t pgdp_get(const pgd_t *pgdp); + extern pgd_t swapper_pg_dir[]; extern pgd_t invalid_pg_dir[]; extern void paging_init(void); @@ -985,36 +990,6 @@ static inline void set_pte(pte_t *ptep, pte_t pte) WRITE_ONCE(*ptep, pte); } -#define ptep_get ptep_get -static inline pte_t ptep_get(pte_t *ptep) -{ - return READ_ONCE(*ptep); -} - -#define pmdp_get pmdp_get -static inline pmd_t pmdp_get(pmd_t *pmdp) -{ - return READ_ONCE(*pmdp); -} - -#define pudp_get pudp_get -static inline pud_t pudp_get(pud_t *pudp) -{ - return READ_ONCE(*pudp); -} - -#define p4dp_get p4dp_get -static inline p4d_t p4dp_get(p4d_t *p4dp) -{ - return READ_ONCE(*p4dp); -} - -#define pgdp_get pgdp_get -static inline pgd_t pgdp_get(pgd_t *pgdp) -{ - return READ_ONCE(*pgdp); -} - static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) { set_pte(ptep, __pte(_PAGE_INVALID)); -- 2.43.0