Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2911643imm; Fri, 24 Aug 2018 07:27:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdauiVt+zJ9t7v4cN4WoqtPXDRQCpTwncPKyZTs04djZghklA1JWn80xrW2nSzb+IDZhbrGC X-Received: by 2002:a62:1815:: with SMTP id 21-v6mr2233810pfy.227.1535120844529; Fri, 24 Aug 2018 07:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535120844; cv=none; d=google.com; s=arc-20160816; b=e62uqAfdrLJZxnImGQ1J1xOi7Xt4NJafFnnGVlMkes77mPl8J1uA9+JdcIKcwnhhyt apXu3bcoFOAaGRPhBNDfLScH0ogaQK4g5u/GiUemlvA9AcqU50zh5rBTlN13OFZkKS3c V5TMzFgRDGeRaETpF3ZvBhT38Q22jSPlINxK0QEzMBDSCVMLhEn8qmSIH38pleL91FlS ZTcJqE2TiMEKsUqjHFWPDQ/XnZonaARSpGDf4e2l/+G8ouIyrdiJgkLG4fGrYq2gFZWJ NdeAFXbRVsRENDzpcJBbzwyaUBsvpFkFG9b5wLNNgq7KpTqpt5Y1gABZf5UrlSpesouU 3pDA== 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=C4GxZs4uwTRQB0ywAwOAEgVD3HxVIgP1/d82Pwh9vds=; b=BBz2ZMcct5qoUpz9zQqqf6CRU1CRoKjbXoV9M+sRZlNhkX7GqD0BSDl6MMhxWonVl2 RljIE6mXwYUklj5OaRSSG8WyOnzGfGX9fuCKZ4D6IK8NyCjo6thNJtnWToFdZSCqRl+7 Df2FVa2ocUaBTGB7d9roau8WIO017wI12O9vEySnCitCRc1AZibnrvlc7+C/IelPGZqI loMZzNWpXPI15c349u8/RNlToQ9dUw0CMXKtnFELiVoFjuPlukwpTyQWyOz0b3yAOd7t a5T9jIkq9y9QMv6PDagTVRLqySbFWzX1/uugY2diOu4DFqx8MlvurTr2cwTGD0K2nrQB I0PA== 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 r11-v6si8465475pfc.253.2018.08.24.07.27.09; Fri, 24 Aug 2018 07:27:24 -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 S1727302AbeHXSAe (ORCPT + 99 others); Fri, 24 Aug 2018 14:00:34 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58020 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbeHXSAe (ORCPT ); Fri, 24 Aug 2018 14:00:34 -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 C0B5AED1; Fri, 24 Aug 2018 07:25:40 -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 6AFBF3F5BC; Fri, 24 Aug 2018 07:25:36 -0700 (PDT) Date: Fri, 24 Aug 2018 15:25:33 +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: <20180824142532.GG11868@brain-police> References: <20180823084709.19717-1-npiggin@gmail.com> <20180823084709.19717-3-npiggin@gmail.com> <20180824130722.GA31409@roeck-us.net> <20180824131026.GB11868@brain-police> <20180824132419.GA9983@roeck-us.net> <20180824133427.GC11868@brain-police> <20180824135048.GF11868@brain-police> <7d0111f4-c369-43a8-72c6-1a7390cdebdd@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d0111f4-c369-43a8-72c6-1a7390cdebdd@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 07:06:51AM -0700, Guenter Roeck wrote: > On 08/24/2018 06:50 AM, Will Deacon wrote: > > >>-#include > >>+struct mmu_gather; > >> static inline void tlb_flush(struct mmu_gather *tlb) > >> { > >> flush_tlb_mm(tlb->mm); > > > >Bah, didn't spot the dereference so this won't work either. You basically > >just need to copy what I did for arm64 in d475fac95779. > > > > Yes, this seems to work. It doesn't really need "struct mmu_gather;" - > I assume that is included from elsewhere - but I added it to be safe. struct mmu_gather comes in via asm-generic/tlb.h. > Can you send a full patch, or do you want me to do it ? I'm evidently incapable of writing code today, so please go ahead :) Will