From patchwork Sat Sep 19 12:59:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 48757 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8JCxYoE002723 for ; Sat, 19 Sep 2009 12:59:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753AbZISM73 (ORCPT ); Sat, 19 Sep 2009 08:59:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753136AbZISM73 (ORCPT ); Sat, 19 Sep 2009 08:59:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10743 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752753AbZISM71 (ORCPT ); Sat, 19 Sep 2009 08:59:27 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8JCxVOU008917 for ; Sat, 19 Sep 2009 08:59:32 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8JCxPJ0019589; Sat, 19 Sep 2009 08:59:28 -0400 From: Juan Quintela To: kvm@vger.kernel.org Subject: [PATCH 2/2] i8259: kvm_* functions only defined when KVM_CAP_IRQCHIP devined Date: Sat, 19 Sep 2009 14:59:21 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Juan Quintela --- hw/i8259.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index aaec6d8..3b98bab 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -464,18 +464,18 @@ static uint32_t elcr_ioport_read(void *opaque, uint32_t addr1) return s->elcr; } +#ifdef KVM_CAP_IRQCHIP static void kvm_kernel_pic_save_to_user(const void *opaque); static int kvm_kernel_pic_load_from_user(void *opaque); +#endif static const VMStateDescription vmstate_pic = { .name = "i8259", .version_id = 1, #ifdef KVM_CAP_IRQCHIP -#ifdef TARGET_I386 .pre_save = kvm_kernel_pic_save_to_user, .post_load = kvm_kernel_pic_load_from_user, #endif -#endif .minimum_version_id = 1, .minimum_version_id_old = 1, .fields = (VMStateField []) {