From patchwork Thu Sep 13 09:21:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 10599093 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B0E7C14E5 for ; Thu, 13 Sep 2018 09:29:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0B102A45A for ; Thu, 13 Sep 2018 09:29:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92C082A457; Thu, 13 Sep 2018 09:29:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F0852A457 for ; Thu, 13 Sep 2018 09:29:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B2B6B8E000A; Thu, 13 Sep 2018 05:29:28 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A3FCF8E0001; Thu, 13 Sep 2018 05:29:28 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7592B8E0008; Thu, 13 Sep 2018 05:29:28 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by kanga.kvack.org (Postfix) with ESMTP id 2DF6E8E0007 for ; Thu, 13 Sep 2018 05:29:28 -0400 (EDT) Received: by mail-pg1-f200.google.com with SMTP id s77-v6so2344183pgs.2 for ; Thu, 13 Sep 2018 02:29:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:message-id:user-agent:date:from :to:cc:subject:references:mime-version; bh=Xzoq3822VPftHOSX/XRMpwACoEFrdDki2itBY3y0uPM=; b=PtxAnKJ6Vp0Smbcyze2zHqMai6wgDdJAgb6Whq9K9YJN8gjnl8F16K5fz9mpqBE+Iy Rj27cd7tNvQquksP7VUSjR0EBYuG2P4Ny1HR5Q68atL0ujLwkICaGB6rprd5b1ZMwsZO igXDH7dvdBu++8PsX18BFMqcM7ioPwyYWkPgEOuwIK4sZR3EisWz2J/Go2dA5KtxpFXH MlTuccrwq8A82eal3py8kHM2GZzLBcruh1acL3lwoAn7iOtRG7nennVL3/bXMSbxcETY FZj7/f/o/a5njjk8mOYkP+JQSN1X2vJMBDqVKYHB8N3zEWWCTFDS1pXK7kLMtRApDauV w51A== X-Gm-Message-State: APzg51BDfoHmOz/lfH29s5V0blMzpnHClshbuhRD9au/weBUb9yXk1Lr JMbMzFKhemuJbrzr/gqpvevGvvJoaoJ0z2cJB5kBfOwpN5Ch2DZ9LpBzpXvacHaxUtfSkOAukqz uEgts+0oZ5m7a3dYEBD52khDRsjWgX+rPHrPrYJWQh3PyyfnabfJNDwVbYTOyi2Yl6Q== X-Received: by 2002:a17:902:724c:: with SMTP id c12-v6mr6277195pll.326.1536830967887; Thu, 13 Sep 2018 02:29:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY8mUGVxC9/HVzk/okFmX/j06nnzcoz3vHou+pNXT7MThK/92mMesFjk7t1oDG474x4i8tH X-Received: by 2002:a17:902:724c:: with SMTP id c12-v6mr6277131pll.326.1536830966833; Thu, 13 Sep 2018 02:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536830966; cv=none; d=google.com; s=arc-20160816; b=kbSOqPbc6mm69zbkJbps6EZheNCMvTRekwb38knaVoxNlmFCiZ+HY5FiAIgcupjiqZ S3QA1wZ15H6qElmgKnYaoU/Krhw/GTjmdh5Gkoh/0/zE8iG8IoKC4LLvZV97tjiSRRPe yviE76GcQLllILWh8yVXgFOS2G/jhJuJG3sVKa1WPg4CZNRM7Vl0ZDkncgKFwgM8mecQ XLxwVAvaFd5WzDMwYyYFcmJ72hA8NqRhNNKbnh8b1+8BYLUGru2A3crCLLpuHvfZ/p+U mJ6f+DyAZwRit223aR7TwrZ5hkberAd/GN/YsgEyz3qsI7lcGvMDZTqpyHflUk50InnM Yhnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:subject:cc:to:from:date:user-agent :message-id:dkim-signature; bh=Xzoq3822VPftHOSX/XRMpwACoEFrdDki2itBY3y0uPM=; b=qdWylYV/CvJWrr38IP1Y7boHjY70bajf+HxHAo7NyE+/MCoHPrT7qTwVhw0ft4fyBo e/3yAREfwmoCeb0VxcwLWz+rXA6bvShHx/3LzDGoPAhXFmlDWH9jsupWP6inqkYb7uXI Dzm2ilSnr9xQk/eBz3s1faO7z2sNkFLcuzE/8OJmSTjp818ZZrZRRYlndSJARm0FsNQj vUEv2190uMbSdkF/Z8MZ08CySpgasoX78GRvjq3N67cjxivDmprmz+v+fqTlD5Ukyk8c D39a0mtgSXNU0AcdzLtp44reo2igTNCPQ6lWtlsu0z0g96b6lxSEDHLvNddrJxXyDnoZ NzMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20170209 header.b=ZxYzhuzv; spf=pass (google.com: best guess record for domain of peterz@infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom=peterz@infradead.org Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id u6-v6si3711931pfu.143.2018.09.13.02.29.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Sep 2018 02:29:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of peterz@infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20170209 header.b=ZxYzhuzv; spf=pass (google.com: best guess record for domain of peterz@infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom=peterz@infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-ID:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Xzoq3822VPftHOSX/XRMpwACoEFrdDki2itBY3y0uPM=; b=ZxYzhuzvrDDduAl8V41DdphEPe 7gQUO268fFWSFv4b6wSRjFZSH5JTeGOdHMN8GwTlu4l7kiHcYjTOKwGFz49KAi3FUezNSRUFsj8Mr qpUV2uUysHzZe7iuL8j2+sHTTPsyd1qFAD4XATJVweOZLMcBKrRWzkAZ+/53fA+QWiyobrfeR752B c//tTV19aeA6uJdUgUyY9ccIcFxemTGIvZttUk1ck6haC+1z00fg59B3nkm9h3P4amFhKm95HNAdi JOyF83B64RtMyx7JM5moBjaqaPgHYAZeHnVzrZp1AtvFig0gmyroDUVDTr7kJBLY79lDn+DVgbWzQ mDvgk70Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0Nw2-0000vo-Ek; Thu, 13 Sep 2018 09:29:14 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 4F58420587E55; Thu, 13 Sep 2018 11:29:10 +0200 (CEST) Message-ID: <20180913092812.190579217@infradead.org> User-Agent: quilt/0.65 Date: Thu, 13 Sep 2018 11:21:16 +0200 From: Peter Zijlstra To: will.deacon@arm.com, aneesh.kumar@linux.vnet.ibm.com, akpm@linux-foundation.org, npiggin@gmail.com Cc: linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, peterz@infradead.org, linux@armlinux.org.uk, heiko.carstens@de.ibm.com Subject: [RFC][PATCH 06/11] asm-generic/tlb: Conditionally provide tlb_migrate_finish() References: <20180913092110.817204997@infradead.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: X-Virus-Scanned: ClamAV using ClamSMTP Needed for ia64 -- alternatively we drop the entire hook. Cc: Will Deacon Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Nick Piggin Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h | 2 ++ 1 file changed, 2 insertions(+) --- a/include/asm-generic/tlb.h +++ b/include/asm-generic/tlb.h @@ -539,6 +539,8 @@ static inline void tlb_end_vma(struct mm #endif /* CONFIG_MMU */ +#ifndef tlb_migrate_finish #define tlb_migrate_finish(mm) do {} while (0) +#endif #endif /* _ASM_GENERIC__TLB_H */