From patchwork Wed Sep 26 11:36:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 10615805 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 6726214BD for ; Wed, 26 Sep 2018 11:55:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A98526B41 for ; Wed, 26 Sep 2018 11:55:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4EF832A980; Wed, 26 Sep 2018 11:55:22 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 91BF026B41 for ; Wed, 26 Sep 2018 11:55:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C84188E0011; Wed, 26 Sep 2018 07:54:59 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C3DD18E000F; Wed, 26 Sep 2018 07:54:59 -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 9C3B98E0011; Wed, 26 Sep 2018 07:54:59 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-it1-f199.google.com (mail-it1-f199.google.com [209.85.166.199]) by kanga.kvack.org (Postfix) with ESMTP id 69F6D8E000F for ; Wed, 26 Sep 2018 07:54:59 -0400 (EDT) Received: by mail-it1-f199.google.com with SMTP id m131-v6so1390940ita.4 for ; Wed, 26 Sep 2018 04:54:59 -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=XglorqJ9uyFiZ1ZeuZxOzw0nliHZ6TsAXBu2+TKpsOGIirlI90WPkxGYnwIkIfM2Mr J8RyWdHBvCrzIO0rmya4Twx6B0VoPtGpJLfFc+zEtX1Y9OWdk0bveLZzDZ4gCLQ2buxK 01gb2uEQ1Eb+KEmXEXaOunJQycdSb1FKd3Co61dC9qbcw5TWztq4+fawUsPpeakEJWqI JzKmiajC2vCpnQJjaKTD/W+IqF5tN/pDA6tjyoqBfhaC8FQSkv21251bLzmu5O5YlES5 kh9PlD5GYTVGezmzRjxHuWhFQ34/zJteQ5rUIV+edETcBx72fPJGafM+TXa3CvEq/oSe pGNw== X-Gm-Message-State: ABuFfoghqksm7Glkf9oO9W6y4IuwYFJTOeCdsbGwU86bFD8ZccVk3StK pvuJmKhycdCQBuo/oCH24KrCCpDD+7z9Fn9NgHAw51rx7krGSRecMiAz3S72lZQTHwLCIDj5xIL +K9VQ3tHGhR87B47dIlyaN15QpeamNO29xS0rrWsYQ8yTamfTOEOJia7By6DZN6iSkg== X-Received: by 2002:a02:129d:: with SMTP id 29-v6mr5160368jap.126.1537962899195; Wed, 26 Sep 2018 04:54:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV60jGVJqT52PsukQA0S8ld+h6m/Yk8nfXb0s7+f5qJPF1xlQf4M1jWWCSeRad1OtcDalL6A2 X-Received: by 2002:a02:129d:: with SMTP id 29-v6mr5160325jap.126.1537962898521; Wed, 26 Sep 2018 04:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537962898; cv=none; d=google.com; s=arc-20160816; b=MGhaS+HwPfHYa4V0JcvGqElHAxsxwEdRlwaeKQTNm0J3dayw3CRSd7U4hkBUnm00Lq MsLZKKo7vYDgj0CavLJt3EdvXTMrxHGBjony2P0n5y0MXENrEDrbnHEHcEJeAHCRFIm9 RdILgm3ZOcHAihgEzyuIQlDJHEr99FMuhFJOnseHx4jPH5CsAM2Tr18q7jprSrHSfkT2 N8knylTYUvOj+SHBeidrKxWsmWpHbd9DV6GyqajmLN6GTN55kcFicsVFmaRSPS3j/RGP cwvHWSaaF3IaVz2WVMnrl8a0l/Id1juAi5ILte/3raczQgIVbymwIJCDhejWxFXqtW+5 wb5w== 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=AKW5EsAssiH+5lYKjI63jY4Rwb1vN8uCJT5Dp/J0Cj7obAtE8z4oh87peGGganoYZ9 0b71q7LEdP2DoyJhbUuH3qjKTMj8K005r2Ndkv49DtZ2GdarLrkYtmrGVI+mdihNnnah s7PtqEeJqLK52qyiwYxrdtmPAy4ODYR1Iaq3UQ69IW5BTKI+dztq9INSlAUbcfpj0CKE DnSP8WL6ZyCcO3aWwVdM/+VWtIRieQGboax1aBTjUQtNzEACQNB0T6I5fD67EwYmOMfY X8wBqmZJpV+0K9IyxhztJ/MkLHCEb3Rc7aoeM1GThTrdh/5nof+XGKIZ7TDJyjZN5r/y f2iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=wrvYsjyJ; spf=pass (google.com: best guess record for domain of peterz@infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom=peterz@infradead.org Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id d129-v6si3178769itc.67.2018.09.26.04.54.58 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Sep 2018 04:54:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of peterz@infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=wrvYsjyJ; spf=pass (google.com: best guess record for domain of peterz@infradead.org designates 2001:8b0:10b:1231::1 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=merlin.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=wrvYsjyJWfTDcdePZDtjYplk4h OgRbp5PvipKKkmFcBpXUvcVFp+R0f1TVKn+te7+BIzL3mPoDDSD06mOs8KePc2bgrpEHexpH9bwpJ hwlBkjc+wIQtRDJbMAWVzl4r9FP3Ip9C/nP1EDyhWgHGO6M7Bu7Km1djRMWpl76AMt+qla2MaKxsJ P8l2QbFyYov8VEm1yRzUvWuvB4Ju0b4UCWpHvvzdFpd8ypZrAaA/kb4jJxyGVyAOt9Ny9M7yqoEwP O5srcSf3yT46M/70FRdnPZ9cG2V21Mg2L3V+fY9YscU9rCc4lXS3CvpRENk0fFuDfpKpJPtH6XELp A7qFbUaA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g58Oc-0007U6-Dz; Wed, 26 Sep 2018 11:54:42 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 8E7C9206F180E; Wed, 26 Sep 2018 13:54:04 +0200 (CEST) Message-ID: <20180926114800.822722731@infradead.org> User-Agent: quilt/0.65 Date: Wed, 26 Sep 2018 13:36:29 +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, riel@surriel.com Subject: [PATCH 06/18] asm-generic/tlb: Conditionally provide tlb_migrate_finish() References: <20180926113623.863696043@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 */