From: Tiwei Bie Date: Mon, 26 Aug 2024 10:08:09 +0000 (+0800) Subject: um: Remove unused kpte_clear_flush macro X-Git-Tag: v6.12-rc1~20^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fcd16fbab9f448c7174bf4c3eeda53ef84e28ee;p=thirdparty%2Flinux.git um: Remove unused kpte_clear_flush macro This macro has no users, and __flush_tlb_one doesn't exist either. Signed-off-by: Tiwei Bie Signed-off-by: Richard Weinberger --- diff --git a/arch/um/include/asm/pgtable.h b/arch/um/include/asm/pgtable.h index 5bb397b65efb2..83373c9963e7c 100644 --- a/arch/um/include/asm/pgtable.h +++ b/arch/um/include/asm/pgtable.h @@ -359,11 +359,4 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte) return pte; } -/* Clear a kernel PTE and flush it from the TLB */ -#define kpte_clear_flush(ptep, vaddr) \ -do { \ - pte_clear(&init_mm, (vaddr), (ptep)); \ - __flush_tlb_one((vaddr)); \ -} while (0) - #endif