Skip to content

Commit af4fcb0

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
mm: tidy up set_ptes definition
Now that all architectures are converted, we can remove the PFN_PTE_SHIFT ifdef and we can define set_pte_at() unconditionally. Link: https://lkml.kernel.org/r/20230802151406.3735276-33-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 203b7b6 commit af4fcb0

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

include/linux/pgtable.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ static inline int pmd_young(pmd_t pmd)
204204
#endif
205205

206206
#ifndef set_ptes
207-
#ifdef PFN_PTE_SHIFT
208207
/**
209208
* set_ptes - Map consecutive pages to a contiguous range of addresses.
210209
* @mm: Address space to map the pages into.
@@ -234,13 +233,8 @@ static inline void set_ptes(struct mm_struct *mm, unsigned long addr,
234233
}
235234
arch_leave_lazy_mmu_mode();
236235
}
237-
#ifndef set_pte_at
238-
#define set_pte_at(mm, addr, ptep, pte) set_ptes(mm, addr, ptep, pte, 1)
239-
#endif
240236
#endif
241-
#else
242237
#define set_pte_at(mm, addr, ptep, pte) set_ptes(mm, addr, ptep, pte, 1)
243-
#endif
244238

245239
#ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
246240
extern int ptep_set_access_flags(struct vm_area_struct *vma,

0 commit comments

Comments
 (0)