From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marvin Liu Subject: [PATCH v3] examples/vm_power_manager: fix build with libvirt version < 0.9.3 Date: Mon, 11 Apr 2016 18:06:13 +0800 Message-ID: <1460369173-30343-1-git-send-email-yong.liu@intel.com> References: <1460346357-26592-1-git-send-email-yong.liu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Marvin Liu To: dev@dpdk.org Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 13A1847D0 for ; Mon, 11 Apr 2016 12:06:24 +0200 (CEST) In-Reply-To: <1460346357-26592-1-git-send-email-yong.liu@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" vm_power_manager utilize libvirt API virDomainGetVcpuPinInfo for retrieve domU vcpu information. This API implemented from version 0.9.3. Suse11 SP3 32bit default libvirt version is 0.8.8, so there'll be build error. Add judgement in sample Makefile to alarm unsupport environment. examples/vm_power_manager/channel_manager.c: In function =E2=80=98update_pcpus_mask=E2=80=99: channel_manager.c:117:3: error: implicit declaration of function =E2=80=98virDomainGetVcpuPinInfo=E2=80=99 Fixes: 8db653ff7889 ("vm power management application") Signed-off-by: Marvin Liu diff --git a/examples/Makefile b/examples/Makefile index a8bc381..027ee57 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -87,6 +87,10 @@ DIRS-$(CONFIG_RTE_LIBRTE_VHOST) +=3D vhost DIRS-$(CONFIG_RTE_LIBRTE_XEN_DOM0) +=3D vhost_xen DIRS-y +=3D vmdq DIRS-y +=3D vmdq_dcb +ifeq ($(shell pkg-config --atleast-version=3D0.9.3 libvirt; echo $$?), 0= ) DIRS-$(CONFIG_RTE_LIBRTE_POWER) +=3D vm_power_manager +else +$(warning "vm_power_manager requires libvirt version >=3D 0.9.3") +endif =20 include $(RTE_SDK)/mk/rte.extsubdir.mk --=20 1.9.3