Skip to content

Commit 2e7dc2b

Browse files
Tong Tiangenakpm00
authored andcommitted
mm: remove __HAVE_ARCH_PTEP_CLEAR in pgtable.h
Currently, there is no architecture definition __HAVE_ARCH_PTEP_CLEAR, Generic ptep_clear() is the only definition for all architecture, So drop the "#ifndef __HAVE_ARCH_PTEP_CLEAR". Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Tong Tiangen <[email protected]> Suggested-by: Anshuman Khandual <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Dave Hansen <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Kefeng Wang <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Pasha Tatashin <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent de8c8e5 commit 2e7dc2b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/linux/pgtable.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,11 @@ static inline pte_t ptep_get_and_clear(struct mm_struct *mm,
272272
}
273273
#endif
274274

275-
#ifndef __HAVE_ARCH_PTEP_CLEAR
276275
static inline void ptep_clear(struct mm_struct *mm, unsigned long addr,
277276
pte_t *ptep)
278277
{
279278
ptep_get_and_clear(mm, addr, ptep);
280279
}
281-
#endif
282280

283281
#ifndef __HAVE_ARCH_PTEP_GET
284282
static inline pte_t ptep_get(pte_t *ptep)

0 commit comments

Comments
 (0)