Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9CA8C5320E for ; Fri, 16 Aug 2024 01:55:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Z/OyflIhDj1OPlK2j8cfY/ptojYdSEITrCVMmB0cw4o=; b=S/sEoBYYw9/pg6t9fnjYI6T8/C apkIHt7vgmio741QTTdFRviq/zfITKCeHZ0hbitia3ufLBX2i8pUmHJWRb8nAnwPU5xm8f8+M5e7s alpY0F8WU9ph0qos1kGnTi3hmmG/o73V7W5g+I/prZP9hWPEatQTgpCPc/lStNwTuuc9/+sZvzULv MYNMDe84SPivpgyL1XlgMgKlJPe1/Wa1bccKnNR/k3F51WSDnxp327PDW2Byp7woO94ehFvDHMjy0 LhojMaYgSc3Ejhj3kDTNaOicY2Qd94f+c7XZkNSTWa612u8Qj7ogc/EvXt9h0Hn6tzJBOGlBMhVNI 67tzgWrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1semBL-0000000BWjT-2VIC; Fri, 16 Aug 2024 01:55:11 +0000 Received: from out0-196.mail.aliyun.com ([140.205.0.196]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1semBB-0000000BWbN-3FUb for linux-um@lists.infradead.org; Fri, 16 Aug 2024 01:55:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1723773296; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=Z/OyflIhDj1OPlK2j8cfY/ptojYdSEITrCVMmB0cw4o=; b=DcKHP91FTFfR0L75D+p2/ojpWQmq32JAczLUSYh8HTINHTpznhp5gV5ofxdvVPvSyRGPlULdVc8S34ORJv3/aXvA6CJ8zBmVnfwZpJ1OGnLMK1ahTyxC+RLZwvWrmpz5v/9/ZpxwQBn5v90fWrtshYNMXKfkhQJAu9Ie6kwMxQY= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.YtEBoj._1723773295) by smtp.aliyun-inc.com; Fri, 16 Aug 2024 09:54:55 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 1/6] um: Remove unused kpte_clear_flush macro Date: Fri, 16 Aug 2024 09:54:42 +0800 Message-Id: <20240816015447.320394-2-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240816015447.320394-1-tiwei.btw@antgroup.com> References: <20240816015447.320394-1-tiwei.btw@antgroup.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240815_185502_601685_636DB894 X-CRM114-Status: UNSURE ( 5.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-um" Errors-To: linux-um-bounces+linux-um=archiver.kernel.org@lists.infradead.org This macro has no users, and __flush_tlb_one doesn't exist either. Signed-off-by: Tiwei Bie --- arch/um/include/asm/pgtable.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/um/include/asm/pgtable.h b/arch/um/include/asm/pgtable.h index 5bb397b65efb..83373c9963e7 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 -- 2.34.1