]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
um: Remove unused kpte_clear_flush macro
authorTiwei Bie <tiwei.btw@antgroup.com>
Mon, 26 Aug 2024 10:08:09 +0000 (18:08 +0800)
committerRichard Weinberger <richard@nod.at>
Thu, 12 Sep 2024 18:32:55 +0000 (20:32 +0200)
This macro has no users, and __flush_tlb_one doesn't exist either.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/asm/pgtable.h

index 5bb397b65efb2f3e50e9d01f4ed6fad6e39775d9..83373c9963e7c9eb69f07ee5953b52eaa6a21a1b 100644 (file)
@@ -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