From b1f9c5a0696040f69f83857aec92da52bfe08484 Mon Sep 17 00:00:00 2001 From: AlieZ22 <820460891@qq.com> Date: Sat, 17 Sep 2022 00:09:08 +0800 Subject: [PATCH] mm: remove __HAVE_ARCH_PTEP_CLEAR in pgtable.h mainline inclusion from mainline-v6.0 commit 2e7dc2b632a324c670ff11dd6c84d711043c683f category: feature bugzilla: https://gitee.com/openeuler/open-source-summer/issues/I56FG1?from=project-issue CVE: N/A Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2e7dc2b632a324c670ff11dd6c84d711043c683f ------------------------------------------------- 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/20220507110114.4128854-5-tongtiangen@huawei.com Signed-off-by: Tong Tiangen Suggested-by: Anshuman Khandual Cc: Borislav Petkov Cc: Catalin Marinas Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Kefeng Wang Cc: Palmer Dabbelt Cc: Pasha Tatashin Cc: Paul Walmsley Cc: Will Deacon Signed-off-by: Andrew Morton (cherry picked from commit 2e7dc2b632a324c670ff11dd6c84d711043c683f) Signed-off-by: Kefeng Wang Signed-off-by: Zeng Zhimin --- include/linux/pgtable.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 7986501bb71e..84b92ff884c1 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -254,13 +254,11 @@ static inline pte_t ptep_get_and_clear(struct mm_struct *mm, } #endif -#ifndef __HAVE_ARCH_PTEP_CLEAR static inline void ptep_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) { ptep_get_and_clear(mm, addr, ptep); } -#endif #ifndef __HAVE_ARCH_PTEP_GET static inline pte_t ptep_get(pte_t *ptep) -- GitLab