Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2832726imm; Fri, 24 Aug 2018 06:12:45 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda8rIkGYvBBNcUo7vusOzrSgfvT222d6YGDN6ZOFTiy/L/8mZO3mmn9mSKXtxymjaA0DD/Y X-Received: by 2002:a62:2f84:: with SMTP id v126-v6mr1964434pfv.115.1535116365231; Fri, 24 Aug 2018 06:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535116365; cv=none; d=google.com; s=arc-20160816; b=NZv5v2Ea8KUJIhMmQltyAz0gXnvbCjyFC3Id4uIFJsxvOxEvEBtCb5Y5gRgZB8dCGi QcHbMCv/1oFAU5PWUWxnHwvcpYvptHrf2Yz/Je2BrKv+nA8+1IqTMLVgwCZWMaaFvOKx Ij8iBFucwQbxcZIZ57U6jfhdBW4RCAB7YV3/r2AzmTrcHauOAw26shnsz30E2/xofApO sHDTuRz0rwjmiNmqOIKVRRxDkpGOzwXIuTwTKCCI3CheD5efuFqCGUuIPoGSzJnPJucE PncGa9RttEobVFAihh35PX02Wt8CDA0DbYcHkgTkY48cYUi9b8PDoqVR0fCfanIImYYB vR8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=LbB1qbPw+yUw4BT1ggI1xrzUF0Xo/lwBICbZVNgdlV8=; b=mIt1cKDiS7dNo5gmhUXbBfiWuuot+5MVBcWth2uzNdALcSfFisF4RF1RjjKf0szFV1 dVSiKwwsTLKxUGRxyjfuDspnjam9/oWMOQ/xcT+xOHVxQl5gki6e7ahTZVF7EASoesvW hmPnNZF23MOBiPrWkV71S0bHX40afwKUus4ZoVPmWEPmHSGiJ+gJGHy1CDXjDgA7ONZt Ix+/xIrIkBed7v3SzvXY0sI45WRM5wDRw9ADqehO3ven5HgVtJPgBD5kdOj+74sLCHFB iGSBFuLX5Y9fqs5z9pVDMZqFhpS1ll6HskDgjrjF8X5/aJWaIykQ3jR8Jl1s2K30hY6+ 7pIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5-v6si6359403plh.18.2018.08.24.06.12.29; Fri, 24 Aug 2018 06:12:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727880AbeHXQpL (ORCPT + 99 others); Fri, 24 Aug 2018 12:45:11 -0400 Received: from foss.arm.com ([217.140.101.70]:57156 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727519AbeHXQpL (ORCPT ); Fri, 24 Aug 2018 12:45:11 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DA29815A2; Fri, 24 Aug 2018 06:10:34 -0700 (PDT) Received: from brain-police (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8462C3F675; Fri, 24 Aug 2018 06:10:30 -0700 (PDT) Date: Fri, 24 Aug 2018 14:10:27 +0100 From: Will Deacon To: Guenter Roeck Cc: Nicholas Piggin , Peter Zijlstra , torvalds@linux-foundation.org, luto@kernel.org, x86@kernel.org, bp@alien8.de, riel@surriel.com, jannh@google.com, ascannell@google.com, dave.hansen@intel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, David Miller , Martin Schwidefsky , Michael Ellerman , linux-arch@vger.kernel.org, Palmer Dabbelt , linux-riscv@lists.infradead.org Subject: Re: [RFC PATCH 2/2] mm: mmu_notifier fix for tlb_end_vma (build failures) Message-ID: <20180824131026.GB11868@brain-police> References: <20180823084709.19717-1-npiggin@gmail.com> <20180823084709.19717-3-npiggin@gmail.com> <20180824130722.GA31409@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180824130722.GA31409@roeck-us.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 24, 2018 at 06:07:22AM -0700, Guenter Roeck wrote: > On Thu, Aug 23, 2018 at 06:47:09PM +1000, Nicholas Piggin wrote: > > The generic tlb_end_vma does not call invalidate_range mmu notifier, > > and it resets resets the mmu_gather range, which means the notifier > > won't be called on part of the range in case of an unmap that spans > > multiple vmas. > > > > ARM64 seems to be the only arch I could see that has notifiers and > > uses the generic tlb_end_vma. I have not actually tested it. > > > > Signed-off-by: Nicholas Piggin > > Acked-by: Will Deacon > > This patch breaks riscv builds in mainline. Looks very similar to the breakage we hit on arm64. diff below should fix it. Will --->* diff --git a/arch/riscv/include/asm/tlb.h b/arch/riscv/include/asm/tlb.h index c229509288ea..5017060be63c 100644 --- a/arch/riscv/include/asm/tlb.h +++ b/arch/riscv/include/asm/tlb.h @@ -14,11 +14,11 @@ #ifndef _ASM_RISCV_TLB_H #define _ASM_RISCV_TLB_H -#include - static inline void tlb_flush(struct mmu_gather *tlb) { flush_tlb_mm(tlb->mm); } +#include + #endif /* _ASM_RISCV_TLB_H */