From patchwork Sun Oct 25 13:47:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Rozenfeld X-Patchwork-Id: 55754 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 n9PDlmwp028496 for ; Sun, 25 Oct 2009 13:47:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753230AbZJYNrj (ORCPT ); Sun, 25 Oct 2009 09:47:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753138AbZJYNrj (ORCPT ); Sun, 25 Oct 2009 09:47:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28736 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752637AbZJYNri (ORCPT ); Sun, 25 Oct 2009 09:47:38 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9PDlhpo022276 for ; Sun, 25 Oct 2009 09:47:44 -0400 Received: from localhost.localdomain (vpn-10-2.str.redhat.com [10.32.10.2]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9PDlcJQ002297 for ; Sun, 25 Oct 2009 09:47:42 -0400 Message-ID: <4AE456F8.5080309@redhat.com> Date: Sun, 25 Oct 2009 15:47:36 +0200 From: Vadim Rozenfeld User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: kvm@vger.kernel.org Subject: [PATCH] viostor driver. fix broken xp build X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/viostor/virtio_stor.c b/viostor/virtio_stor.c index 4c9fe27..ad7f005 100644 --- a/viostor/virtio_stor.c +++ b/viostor/virtio_stor.c @@ -1133,7 +1133,7 @@ CompleteDPC( CompleteSRB(DeviceExtension, Srb); } - +#ifdef USE_STORPORT VOID CompleteDpcRoutine( IN PSTOR_DPC Dpc, @@ -1182,3 +1182,4 @@ CompleteDpcRoutine( } return; } +#endif diff --git a/viostor/virtio_stor.h b/viostor/virtio_stor.h index 221c653..063c1d1 100644 --- a/viostor/virtio_stor.h +++ b/viostor/virtio_stor.h @@ -103,7 +103,9 @@ typedef struct _ADAPTER_EXTENSION { BOOLEAN dump_mode; LIST_ENTRY list_head; LIST_ENTRY complete_list; +#ifdef USE_STORPORT STOR_DPC completion_dpc; +#endif BOOLEAN has_sn; ULONG msix_vectors; }ADAPTER_EXTENSION, *PADAPTER_EXTENSION;