From patchwork Wed Jan 27 23:53:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 12051283 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3BD0C433DB for ; Wed, 27 Jan 2021 23:54:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8D01464DDA for ; Wed, 27 Jan 2021 23:54:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D01464DDA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2E94A6B0072; Wed, 27 Jan 2021 18:54:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 245386B0073; Wed, 27 Jan 2021 18:54:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 10B266B0074; Wed, 27 Jan 2021 18:54:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0038.hostedemail.com [216.40.44.38]) by kanga.kvack.org (Postfix) with ESMTP id EA75F6B0072 for ; Wed, 27 Jan 2021 18:54:20 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id B25AA363E for ; Wed, 27 Jan 2021 23:54:20 +0000 (UTC) X-FDA: 77753211480.08.unit31_120a8e92759b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin08.hostedemail.com (Postfix) with ESMTP id 953141819E76C for ; Wed, 27 Jan 2021 23:54:20 +0000 (UTC) X-HE-Tag: unit31_120a8e92759b X-Filterd-Recvd-Size: 3259 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf31.hostedemail.com (Postfix) with ESMTP for ; Wed, 27 Jan 2021 23:54:20 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 21BE764DD6; Wed, 27 Jan 2021 23:54:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611791659; bh=mxiaCobhkjpW2w1MMWXxj64WTjRY88UbBuz6FY0NUY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dn5FD06aIXNLNL1uxfeEmMn4arTcGVY9NmjF7uJ++cK8Yo3oTmbj4K5fG78etCgHM +PwFQOwklT9YUZyGGhyamrD8w8SNZRSH+MJKywvxiPSYZ5R4T2OkIqQpyOzbIdnFtD ku+LAMT8Vxrf+dzDfWJczpQ29qYVS4znS5A828/kh76T2P5vIWRL9Kp3MNXk+3NR+Y Dp1qHE1raaO13Wx7TkkL5zyZWxNSkPUcQojcwOe5xsQFM/+9w7GtwxjvUp/kQIzI5H 4OvnCd3rgKeTXcZhG2wl+rG5PTDAy3PGm7fT4/ktdnNdDJ62kcQas3QPIyeC2DvSYN +0FrMoccwb29w== From: Will Deacon To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, linux-mm@kvack.org, Will Deacon , Yu Zhao , Minchan Kim , Peter Zijlstra , Thomas Gleixner , Linus Torvalds , Vlastimil Babka , Mohamed Alzayat , "Aneesh Kumar K.V" , Nadav Amit , Andrea Arcangeli Subject: [PATCH v3 5/6] tlb: arch: Remove empty __tlb_remove_tlb_entry() stubs Date: Wed, 27 Jan 2021 23:53:46 +0000 Message-Id: <20210127235347.1402-6-will@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210127235347.1402-1-will@kernel.org> References: <20210127235347.1402-1-will@kernel.org> MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: If __tlb_remove_tlb_entry() is not defined by the architecture then we provide an empty definition in asm-generic/tlb.h. Remove the redundant empty definitions for sparc64 and x86. Acked-by: Peter Zijlstra (Intel) Reviewed-by: Yu Zhao Suggested-by: Peter Zijlstra Signed-off-by: Will Deacon --- arch/sparc/include/asm/tlb_64.h | 1 - arch/x86/include/asm/tlb.h | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/sparc/include/asm/tlb_64.h b/arch/sparc/include/asm/tlb_64.h index e841cae544c2..779a5a0f0608 100644 --- a/arch/sparc/include/asm/tlb_64.h +++ b/arch/sparc/include/asm/tlb_64.h @@ -24,7 +24,6 @@ void flush_tlb_pending(void); #define tlb_start_vma(tlb, vma) do { } while (0) #define tlb_end_vma(tlb, vma) do { } while (0) -#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0) #define tlb_flush(tlb) flush_tlb_pending() /* diff --git a/arch/x86/include/asm/tlb.h b/arch/x86/include/asm/tlb.h index 820082bd6880..1bfe979bb9bc 100644 --- a/arch/x86/include/asm/tlb.h +++ b/arch/x86/include/asm/tlb.h @@ -4,7 +4,6 @@ #define tlb_start_vma(tlb, vma) do { } while (0) #define tlb_end_vma(tlb, vma) do { } while (0) -#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0) #define tlb_flush tlb_flush static inline void tlb_flush(struct mmu_gather *tlb);