From patchwork Tue Feb 9 15:25:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 61547 Delivered-To: patches@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2107733lbl; Tue, 9 Feb 2016 07:25:14 -0800 (PST) X-Received: by 10.28.7.72 with SMTP id 69mr5814539wmh.50.1455031514614; Tue, 09 Feb 2016 07:25:14 -0800 (PST) Return-Path: Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id x16si23813460wme.57.2016.02.09.07.25.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Feb 2016 07:25:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) smtp.mailfrom=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.84) (envelope-from ) id 1aTAAC-0006Ar-2D; Tue, 09 Feb 2016 15:25:12 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Eric Blake , "Daniel P. Berrange" Subject: [PATCH 05/14] target-cris: Remove unnecessary ifdef from mmu.c Date: Tue, 9 Feb 2016 15:25:02 +0000 Message-Id: <1455031511-23684-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1455031511-23684-1-git-send-email-peter.maydell@linaro.org> References: <1455031511-23684-1-git-send-email-peter.maydell@linaro.org> mmu.c is only built for CONFIG_SOFTMMU targets, so there is no need to redundantly surround the whole file contents with an #ifndef CONFIG_USER_ONLY. The ifdef also confuses the Coccinelle tool. Signed-off-by: Peter Maydell --- target-cris/mmu.c | 3 --- 1 file changed, 3 deletions(-) -- 1.9.1 diff --git a/target-cris/mmu.c b/target-cris/mmu.c index 1c95a41..4a9c595 100644 --- a/target-cris/mmu.c +++ b/target-cris/mmu.c @@ -18,8 +18,6 @@ * License along with this library; if not, see . */ -#ifndef CONFIG_USER_ONLY - #include "cpu.h" #include "mmu.h" @@ -360,4 +358,3 @@ int cris_mmu_translate(struct cris_mmu_result *res, env->pregs[PR_SRS] = old_srs; return miss; } -#endif