From patchwork Thu Aug 30 16:15:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 145549 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp92182ljw; Thu, 30 Aug 2018 09:16:31 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda7j5UWJaTQYWSajLyyDrZJz4gzux0dnS5BNefqAbYw1ho1L7kT5c/3xFs4VrmGdT2cWur7 X-Received: by 2002:a63:5419:: with SMTP id i25-v6mr8568441pgb.345.1535645791375; Thu, 30 Aug 2018 09:16:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535645791; cv=none; d=google.com; s=arc-20160816; b=NJ3UPgIIVL1ChCAYijsjgO3rZ3LJPy1qUJX5R5jU8tq0W+hoTj8LikvHyXrr7jF16h 6HFL3yEFFsZDLX11izsiuryCbvS+OjQs56S2biovqYqPaXJX3BW89Ju7ANMbL8T5pPur KV4q1Q5dXfnj56avmiKIYbh1Ztt1FJJIqNykzSlhktbxILdY3PcQzogaEX0ip9NnR1b6 ldxvPJ/vyGndIEzlwsDo8GIWiG6odxe/RGIIXx66VbAE+a+JAH+CdSc7VJvPPur16zCo 46Bzc2W6REpPbyZtMmLQnNMb8fZAoWkRIMxezuMytpblBI8xa/wJ/n1XEUbJLNaVBEGN vJHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=B1Nu5pXg02Xhcyn0ipv/Vcv2MEJluM9CQiZ5I2VVJoA=; b=uqxxgsmm2borMpbfnFk3V33Qi3RJhZg9lCGNTvY2/BavMQSBr7NYCC8TZJxZ2DmSNC IfwNHRPYCOzvOHwI1C0DaBWrwEEA919qPurjM5QoEcSRrLJUwZgg9iml/4i/okZ3Gh8D DEpIv7duK4dlZKo8XGWTVKheTPj54d+IquBkvZFSnznEOxveojm1JnvPfsLWjJ/UKpFY IaeZB+EpVZdCZk/eLg/dDyUztH7eWOwBlS+E7FmdjAhTxQmNfLa72A++1eXyxjWamcro U/gMzDMObbWeGmP341HYTBT4ByMhYnJiCG5gqNx2Gt+1F3IObeMcyiyj3DSex+5bNTRb q5QQ== 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 22-v6si7124203pfl.220.2018.08.30.09.16.31; Thu, 30 Aug 2018 09:16:31 -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 S1727796AbeH3UTR (ORCPT + 32 others); Thu, 30 Aug 2018 16:19:17 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:44862 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727607AbeH3USm (ORCPT ); Thu, 30 Aug 2018 16:18:42 -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 F0B0F1AC1; Thu, 30 Aug 2018 09:15:49 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C1DDA3F802; Thu, 30 Aug 2018 09:15:49 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 794801AE3A71; Thu, 30 Aug 2018 17:16:01 +0100 (BST) From: Will Deacon To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, benh@au1.ibm.com, torvalds@linux-foundation.org, npiggin@gmail.com, catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, Will Deacon Subject: [PATCH 07/12] asm-generic/tlb: Guard with #ifdef CONFIG_MMU Date: Thu, 30 Aug 2018 17:15:41 +0100 Message-Id: <1535645747-9823-8-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1535645747-9823-1-git-send-email-will.deacon@arm.com> References: <1535645747-9823-1-git-send-email-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The inner workings of the mmu_gather-based TLB invalidation mechanism are not relevant to nommu configurations, so guard them with an #ifdef. This allows us to implement future functions using static inlines without breaking the build. Signed-off-by: Will Deacon --- include/asm-generic/tlb.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.1.4 diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index b3353e21f3b3..a25e236f7a7f 100644 --- a/include/asm-generic/tlb.h +++ b/include/asm-generic/tlb.h @@ -20,6 +20,8 @@ #include #include +#ifdef CONFIG_MMU + #ifdef CONFIG_HAVE_RCU_TABLE_FREE /* * Semi RCU freeing of the page directories. @@ -310,6 +312,8 @@ static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb, #endif #endif +#endif /* CONFIG_MMU */ + #define tlb_migrate_finish(mm) do {} while (0) #endif /* _ASM_GENERIC__TLB_H */