From patchwork Tue Oct 11 16:32:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Covington X-Patchwork-Id: 9371345 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0C7E06048F for ; Tue, 11 Oct 2016 16:32:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F33FB29030 for ; Tue, 11 Oct 2016 16:32:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E61D329052; Tue, 11 Oct 2016 16:32:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6A70E29030 for ; Tue, 11 Oct 2016 16:32:40 +0000 (UTC) Received: from localhost ([::1]:56921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btzyp-0003PN-DJ for patchwork-qemu-devel@patchwork.kernel.org; Tue, 11 Oct 2016 12:32:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btzyX-0003Nh-2s for qemu-devel@nongnu.org; Tue, 11 Oct 2016 12:32:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btzyV-0007DF-3W for qemu-devel@nongnu.org; Tue, 11 Oct 2016 12:32:20 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btzyN-00079C-Q9; Tue, 11 Oct 2016 12:32:12 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EB7F461822; Tue, 11 Oct 2016 16:32:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1476203529; bh=2GdA/z2TxRD6+WDFYFyF95HXl/Kuu+JHO8yQfE1rE9E=; h=From:To:Cc:Subject:Date:From; b=U//fFPRUECotuIOlfuk4U/c6lewrxmt2f7+4cd8CRkVom0RGVK+8mU/tmt3PzA/Ir tckBTbVOFT7eNxEbmXjbHvlDc9Y0L/Zh9wEJEqMVGSb/TeNZCJeL0MtDgHpBM7c7wJ q3MiwPtVlQWCFnAR8WM7N244NIB6fPBObdAAEge0= Received: from rtp-lab-has1.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: cov@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B497F61787; Tue, 11 Oct 2016 16:32:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1476203529; bh=2GdA/z2TxRD6+WDFYFyF95HXl/Kuu+JHO8yQfE1rE9E=; h=From:To:Cc:Subject:Date:From; b=U//fFPRUECotuIOlfuk4U/c6lewrxmt2f7+4cd8CRkVom0RGVK+8mU/tmt3PzA/Ir tckBTbVOFT7eNxEbmXjbHvlDc9Y0L/Zh9wEJEqMVGSb/TeNZCJeL0MtDgHpBM7c7wJ q3MiwPtVlQWCFnAR8WM7N244NIB6fPBObdAAEge0= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org B497F61787 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=cov@codeaurora.org From: Christopher Covington To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Date: Tue, 11 Oct 2016 12:32:02 -0400 Message-Id: <20161011163202.19720-1-cov@codeaurora.org> X-Mailer: git-send-email 2.9.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 198.145.29.96 Subject: [Qemu-devel] [PATCH] hw/intc/arm_gic_kvm: Fix build on aarch64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jones , Christopher Covington , Shanker Donthineni Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Remove unused debugging code to fix native building on aarch64. Without this change, the following -Werr output inhibits make from completing. qemu/hw/intc/arm_gic_kvm.c:38:18: error: debug_gic_kvm defined but not used [-Werror=unused-const-variable=] static const int debug_gic_kvm = 0; ^~~~~~~~~~~~~ cc1: all warnings being treated as errors qemu/rules.mak:60: recipe for target 'hw/intc/arm_gic_kvm.o' failed make[1]: *** [hw/intc/arm_gic_kvm.o] Error 1 Makefile:205: recipe for target 'subdir-aarch64-softmmu' failed Signed-off-by: Christopher Covington Reviewed-by: Peter Maydell --- hw/intc/arm_gic_kvm.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/hw/intc/arm_gic_kvm.c b/hw/intc/arm_gic_kvm.c index ae7ac58..11729ee 100644 --- a/hw/intc/arm_gic_kvm.c +++ b/hw/intc/arm_gic_kvm.c @@ -30,20 +30,6 @@ #include "gic_internal.h" #include "vgic_common.h" -//#define DEBUG_GIC_KVM - -#ifdef DEBUG_GIC_KVM -static const int debug_gic_kvm = 1; -#else -static const int debug_gic_kvm = 0; -#endif - -#define DPRINTF(fmt, ...) do { \ - if (debug_gic_kvm) { \ - printf("arm_gic: " fmt , ## __VA_ARGS__); \ - } \ - } while (0) - #define TYPE_KVM_ARM_GIC "kvm-arm-gic" #define KVM_ARM_GIC(obj) \ OBJECT_CHECK(GICState, (obj), TYPE_KVM_ARM_GIC)