From patchwork Fri Aug 24 15:52:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 145079 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1410842ljw; Fri, 24 Aug 2018 08:53:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbCwHwFND5123CjqXZyHKqvrswpjN1O8MrMhSPCvCErS105wwEIN2EnvD9KJCs7LvSpHdkP X-Received: by 2002:a17:902:4a0c:: with SMTP id w12-v6mr2222533pld.289.1535125994382; Fri, 24 Aug 2018 08:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535125994; cv=none; d=google.com; s=arc-20160816; b=v/zoLnLSgoUrtzUXpZcvFSaIGTQuTjumfrcQv0GGsNFrunc+1V3ncPFRlfLhPTulzT Bkgiv2Phul4G1510IA9HJCmhrRCefoOVcjMfOV5Zlm8bah+LCIw7YjXvwjjvJmWxm7iZ 49I9wxFgg7qmptDBc//6Jrb/HY9nGTrAHik73r1u0nAnao7IRwO1M7hUYNCuTi9P8Cp1 tKFwq64cycyScajlISlh6lH1z9m4Wk3s7JbbzEwq6HyqqKwVO9hVKk6HfX9fqMzyU5lT 61N/mt17wRVlB1AsOhD9REzBnT2RNMDMOpcAFStNCnWmmL3yB7bj9UdZpT10Npw6ticY n8WQ== 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=GrU7vRm1KhZZEJeulQACNDdskQuSpQ6gO5QbomWSYOU=; b=MWXpEyilDtjIoJy3pfksTbJKAyxtT3pckDUWGF6eUlPnu+z0ZpFBOlt5bsu7brySDX TaYMrR6LkiKNt2Cj5BVZYe9c0AjH/L8o+hf4KICFg7wpOqVyY/TGp2PkwIJAp7c0oTdi Wxrykn5BVz4zHbX9TRgkitoFhzxEw/ELzOkCirICuZehMSRl1JvG9iu1CEe9cIiuTO5e ihx9p0epmFBxtDTTpPA/NhWlbnx7ISxgujFm4WCa1oTT/NprNi6yoQ7DeEnqkiY7sppH VqHw7qxitelO7c3l+VRRUJPN2nqKc86bT74bqneS/ktb0lV04V5mAqpSQMlX62hbfSMa BBmQ== 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 h2-v6si6663834plh.145.2018.08.24.08.53.14; Fri, 24 Aug 2018 08:53:14 -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 S1728114AbeHXT2Z (ORCPT + 32 others); Fri, 24 Aug 2018 15:28:25 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:32874 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727566AbeHXT1w (ORCPT ); Fri, 24 Aug 2018 15:27:52 -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 D297D174E; Fri, 24 Aug 2018 08:52:38 -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 9FD2E3F7BE; Fri, 24 Aug 2018 08:52:38 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 1BE9D1AE33A3; Fri, 24 Aug 2018 16:52:48 +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: [RFC PATCH 07/11] asm-generic/tlb: Guard with #ifdef CONFIG_MMU Date: Fri, 24 Aug 2018 16:52:42 +0100 Message-Id: <1535125966-7666-8-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1535125966-7666-1-git-send-email-will.deacon@arm.com> References: <1535125966-7666-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 | 3 +++ 1 file changed, 3 insertions(+) -- 2.1.4 diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index b3353e21f3b3..859f897d3d53 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. @@ -312,4 +314,5 @@ static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb, #define tlb_migrate_finish(mm) do {} while (0) +#endif /* CONFIG_MMU */ #endif /* _ASM_GENERIC__TLB_H */