From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Ehrhardt Subject: [PATCH 1 of 6] [PATCH] kvm-userspace: ppc: fix compatfd build decision Date: Wed, 10 Dec 2008 16:45:47 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: ehrhardt@linux.vnet.ibm.com, c=kvm-ppc@vger.kernel.org, kvm@vger.kernel.org, hollisb@us.ibm.com To: avi@redhat.com Return-path: Received: from mtagate4.uk.ibm.com ([195.212.29.137]:33174 "EHLO mtagate4.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753573AbYLJPrB (ORCPT ); Wed, 10 Dec 2008 10:47:01 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: # HG changeset patch # User Christian Ehrhardt # Date 1228922788 -3600 # Node ID b41f0d6129f51fb86bf799a5fe7b14a9270eeca4 # Parent 3af3fa5e009e143e1167979e55d547c453661059 [PATCH] kvm-userspace: ppc: fix compatfd build decision From: Christian Ehrhardt qemu-kvm.c uses qemu_eventfd/qemu_signalfd. The code of compatfd takes care if CONFIG_eventfd/CONFIG_signalfd is really enabled. But currently compatfd is not build if --disable-aio is set. This patch lets compatfd.c build if USE_KVM is set to allow qemu-kvm to be linked in all cases (with/without --disable-aio) Signed-off-by: Christian Ehrhardt --- [diffstat] Makefile | 2 +- Makefile.target | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) [diff] diff --git a/qemu/Makefile b/qemu/Makefile --- a/qemu/Makefile +++ b/qemu/Makefile @@ -59,7 +59,7 @@ BLOCK_OBJS += block-raw-posix.o BLOCK_OBJS += block-raw-posix.o endif -ifdef CONFIG_AIO +ifeq ($(USE_KVM), 1) BLOCK_OBJS += compatfd.o endif diff --git a/qemu/Makefile.target b/qemu/Makefile.target --- a/qemu/Makefile.target +++ b/qemu/Makefile.target @@ -655,7 +655,7 @@ OBJS+=block-raw-posix.o OBJS+=block-raw-posix.o endif -ifdef CONFIG_AIO +ifeq ($(USE_KVM), 1) OBJS+=compatfd.o endif