From patchwork Fri Aug 24 18:22:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 145099 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1544971ljw; Fri, 24 Aug 2018 11:23:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaXs2FRn7vsWg/aKm/T9/bmnn8nAIIPwJNmlnKmS4ZzbIJx/H739xeJ3BuZXuTNk9cbz8DS X-Received: by 2002:a62:fd06:: with SMTP id p6-v6mr3070657pfh.167.1535134980755; Fri, 24 Aug 2018 11:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535134980; cv=none; d=google.com; s=arc-20160816; b=LnTeujT+uFnCpa7Cendzc8aULJ92QckRQBlQQ7vRKw+d+0umukNXs2RrypM3nh2Fda oIEHSQ9hN60SV6xAMZ06Q1YUmr/5lAeXPP6bOvJ4hRoNK19Gv0uBjH+YaHOLIfej5sKG AOKwmTLRVdMPOCoH1jN2DrMQNyM3xWvUGW9irjnvVegjlkqr24Gb3CkEPLddDyEifJdT fvWJ9rvZknIEG0K9M1jKDfwYrliYVVy74f5UBouEezmMlOaEWxiPDep5aHUWe3HcBteg jAN2+rWuFLEV/T5xOWnL2LQfIma29ANDFwbLV1BskQbNA/dkH9Zzc8Hyw48XPSlvcZdD zX3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ahxyfoL4byG71/ecDTBY06OkhZrE2lvcXYCgTZMvKa0=; b=hawlx0uLeLp4TijR5bfu+YDGasidnLik7VPR4RQUOk8wa57Sxh3tdl/8SWWKT4YYzT 338VU2ivTZrj6qipLh0tE51H1aGSGGq+abr46Adsk+t2Kv4WlGhPiqyj+bsUUpHzOu/i RvCD5buWqchVFHrwg0CyHrc9Zv7YvWrl0pBOkKRrEyNCJQtL46QpkuAAxnQliP9j5BTp opXvk7SbHsehSv2PBFmZk3/a8qvY+pdh9zxGu0FH//UjjXdJfmAAIk2GJnpiknPF+GHD ZGA+yr+Ed5pbk+WxA5BrLQYcTeCw3Wl3L/TvM6ps0Y2Kt2uwKpp0d6RdIjk+VsZ1gSqK BtlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hvBVFy3a; 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 31-v6si7336865plg.260.2018.08.24.11.23.00; Fri, 24 Aug 2018 11:23:00 -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=hvBVFy3a; 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 S1727679AbeHXV6m (ORCPT + 32 others); Fri, 24 Aug 2018 17:58:42 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45204 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726850AbeHXV6m (ORCPT ); Fri, 24 Aug 2018 17:58:42 -0400 Received: by mail-pl1-f194.google.com with SMTP id j8-v6so1425251pll.12 for ; Fri, 24 Aug 2018 11:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=ahxyfoL4byG71/ecDTBY06OkhZrE2lvcXYCgTZMvKa0=; b=hvBVFy3aGTZcL02fCeNzTeDw9/yX+ZzD20JwQ2gKyzmuxpcIo0ExS87B7bIx/k0nKi mvosXdcZRiZa9z9wk9bda8cQZ0nRmSZgBLhtVB4xugNuBXnhH1t86ZE6R90EIq+Fz0ch RRtuHsRrLAYnLY+mtoY3Mva9WXBMxrkjzIQcRsNxSuv8ieKHP+1/43ONyfCiPAVrPhxn 1atrGNZnnsEXzuf6UoS20zxfJwT/1+Lrc21nyTjXsI4u3+SGh08iZqpQhPKaqmtNkpiO hmf8UIw/X0w1QeMkT7Dn2FD9KHYV6zJjlDDakAbCibwpr9GTWcoQOjg6QpcZ0FSRW1xT 2Avw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=ahxyfoL4byG71/ecDTBY06OkhZrE2lvcXYCgTZMvKa0=; b=qhwFyizxJMp6ajgbUSQ21pdqBGIHEy3cSyWsPOCw8CY3pscyNjNuOe8aYNCy7nyHYF Ry9vZW9PrVaDhJUFACfDJtTIW5FiaCheP2RCfKv5PBygMBdS9h7uc50iTlyt8Tl56WxO wCdUqsnZGB20JkXTg9NCnMa3ZEDdRZYbBQQOxjAM0Uu6d+8V+nCOMBw7le+IcDpTyLVN jN3lOvY/8NVZqZK6yQxkEfRbZlVXym/uYy8CuH8NUDq4fSvVGASiVuQfqzNzTYv6VhTR o4cOG8q70njwRta1pXeDp2OuiBmkBsCVpwE9LengfSNnf2T8XChpC1345Tj2RVig8MsR dqAQ== X-Gm-Message-State: APzg51DpxasHGC5vapjiIWCt5IODuVLwFSQmdpghlIJeozFKWgh9es2h ucEiMhsF3C+sSRvXZLzaCFo= X-Received: by 2002:a17:902:9687:: with SMTP id n7-v6mr260741plp.33.1535134977692; Fri, 24 Aug 2018 11:22:57 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id e190-v6sm18686531pfc.81.2018.08.24.11.22.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Aug 2018 11:22:57 -0700 (PDT) From: Guenter Roeck To: Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Will Deacon , Guenter Roeck Subject: [PATCH] riscv: tlb: Provide definition of tlb_flush() before including tlb.h Date: Fri, 24 Aug 2018 11:22:55 -0700 Message-Id: <1535134975-18594-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Will Deacon As of commit fd1102f0aade ("mm: mmu_notifier fix for tlb_end_vma"), asm-generic/tlb.h now calls tlb_flush() from a static inline function, so we need to make sure that it's declared before #including the asm-generic header in the arch header. Reported-by: Guenter Roeck Fixes: fd1102f0aade ("mm: mmu_notifier fix for tlb_end_vma") Signed-off-by: Will Deacon [groeck: Use forward declaration instead of moving inline function] Signed-off-by: Guenter Roeck --- arch/riscv/include/asm/tlb.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 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)