Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2892895imm; Fri, 24 Aug 2018 07:09:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYeYw8dbpXrnPuCzpESkqAUUWwJn61mUBg/2VojMRG5YHxEMQFidTHoaG3szF+me4BzXglk X-Received: by 2002:a17:902:9883:: with SMTP id s3-v6mr1906039plp.194.1535119770253; Fri, 24 Aug 2018 07:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535119770; cv=none; d=google.com; s=arc-20160816; b=gwEqgskp2gTVUnolKZDiQuRFBJpnC/q9UF9MsdbRGiUmk/sylBrMJKJHePLDqqEr0O 3jXzq/+VE0+1qGLcJ2gzlIRtqSYCt1GxJziY40NqEqb+f1/pzL8fvaF++3HR6HImuiEf YWNjUXPdrY4W2Zk06ypmYnQ0vFpYwsNp1gPOsvEvY+AgYOdOWQ3Vr0epwWhpDfQg72Ln KgC9qmMueAdUcUPb3JsicpjC+Xbvc2wzpCMaTpVfs82oANHuSc/DNMgrbARv8fmQkg29 VPEKdMasOwDhUl2vmhO0QJ3CF1Xg0gUhTmSCSRCgaa2cgsQw2XU+JiCcUV3ANh8OrU6b vNFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=ep+Lw9us11yU9urW8LrhIGhsId4Kl5l5f5dBynUDh7w=; b=mCvBffenvh4+5u/9sjsIyUDa8LMMymwUbMZhjTQdQPhn79f+lbntQP4tSw9eveYOBC zd5CmotU72iLgr5RHFgyRwmiJrc7gNFG9Q/xAY0WIY4GssyI3xQLvCf2AvLElY52pzBt Z/oM+tPeCLRIFlXlOaBNRcFL3CZcRPOob8zDWQZmMJCQSMW9TIamFw8A2iwAClZKuL8y Twxc1Lh+JoFfKqlOL6tOOQL4xwg8HBCcxf6uy0NYpNkbietOH7P0Qsv6t/CliXsKh+Lk gMGvgMJvGiwJQX7bCTly6m7hjVm/mfItWDDnipEwyTldiHBEdAxQojqai48pRbVpFh61 lLOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DnK4SGee; 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 1-v6si6935480plm.34.2018.08.24.07.09.01; Fri, 24 Aug 2018 07:09:30 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DnK4SGee; 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 S1726640AbeHXRln (ORCPT + 99 others); Fri, 24 Aug 2018 13:41:43 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39420 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726264AbeHXRln (ORCPT ); Fri, 24 Aug 2018 13:41:43 -0400 Received: by mail-pf1-f196.google.com with SMTP id j8-v6so4599688pff.6; Fri, 24 Aug 2018 07:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ep+Lw9us11yU9urW8LrhIGhsId4Kl5l5f5dBynUDh7w=; b=DnK4SGeeYSkdb6VUiPnU0PGK+pdSrrSJ79uIMCIFNgOWbwYNsKmRtpQ8ughfXaVuW0 U8f1E7UVfddClNPsx4wIiru6+tYgtk+enFymZbNOU0W2lVV4E4Zvy7nd8D5peWczZeC+ bSNf+y9HDK+D73bzE55NcZusvKNAOFaCEr+pUW9PnPo/3kCP8XZApD/Z6N6lIfBnmhuw nyAgu6ETto72GQ3Dc6e5jdc71Vxfg8Uz1mSMUAkQ2IlNbVYLXtnnb49VNszT6GTEx7CR 19SIu533SeD1kpCBznlLBbmFWxDUdwu3MbJ/gWVxBgiHdUPgozf2XXvDO5suVddRooOl u0lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ep+Lw9us11yU9urW8LrhIGhsId4Kl5l5f5dBynUDh7w=; b=CwAlQJWbcUxt8hJpeuqHCh4oiEHkBT9JhJTlUZJchcB7X8OGxLu6/V+uL3pTH6tU/N 4TmemZ4XGpDW6xOFGzHCxnsSAxXzwIV+N+ykkwIGdpXg3Z+IZPHV7VEr9jkvf5JZDDxz ozcyXiW6ooIyi8UAbl00OMWg4rUF0wl1i0KAB4MgucWnTkemOveJpEEkb7eG38AbEswS NHfe/1peun5fyCjcQKjASJgBFPlmsoGQSdlLo17iw6Nx7BgSVRIfsJvIziEXAte6YU5k wbHy3w156C8103SczuIdHmMKGhzka0OxwrqHvuFsX0cB7NJxymzYEA1w4BesWxdRHiQ3 cjZA== X-Gm-Message-State: APzg51AjyhmO/PjJSGxrWl5hCwxuClXaci7tie1tEyEblY+e68vcqWfz hllIQRvxf43IhBNw2xCFH0I= X-Received: by 2002:aa7:8118:: with SMTP id b24-v6mr2220046pfi.78.1535119614110; Fri, 24 Aug 2018 07:06:54 -0700 (PDT) Received: from server.roeck-us.net (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id j184-v6sm9963376pge.77.2018.08.24.07.06.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Aug 2018 07:06:53 -0700 (PDT) Subject: Re: [RFC PATCH 2/2] mm: mmu_notifier fix for tlb_end_vma (build failures) To: Will Deacon 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 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> From: Guenter Roeck Message-ID: <7d0111f4-c369-43a8-72c6-1a7390cdebdd@roeck-us.net> Date: Fri, 24 Aug 2018 07:06:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180824135048.GF11868@brain-police> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Can you send a full patch, or do you want me to do it ? Thanks, Guenter --- diff --git a/arch/riscv/include/asm/tlb.h b/arch/riscv/include/asm/tlb.h index c229509288ea..439dc7072e05 100644 --- a/arch/riscv/include/asm/tlb.h +++ b/arch/riscv/include/asm/tlb.h @@ -14,6 +14,10 @@ #ifndef _ASM_RISCV_TLB_H #define _ASM_RISCV_TLB_H +struct mmu_gather; + +static void tlb_flush(struct mmu_gather *tlb); + #include static inline void tlb_flush(struct mmu_gather *tlb)