Received: from eggs.gnu.org ([2001:4830:134:3::10]:40557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTAbB-0000ZQ-F4 for qemu-devel@nongnu.org; Tue, 09 Feb 2016 10:53:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTAb6-000777-Th for qemu-devel@nongnu.org; Tue, 09 Feb 2016 10:53:05 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:57247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTAb6-00076J-N1 for qemu-devel@nongnu.org; Tue, 09 Feb 2016 10:53:00 -0500 From: Peter Maydell Date: Tue, 9 Feb 2016 15:25:02 +0000 Message-Id: <1455031511-23684-6-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1455031511-23684-1-git-send-email-peter.maydell@linaro.org> References: <1455031511-23684-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 05/14] target-cris: Remove unnecessary ifdef from mmu.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: patches@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(-) 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 -- 1.9.1