From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH] xenvirt: fix compilation after mempool changes Date: Mon, 13 Jun 2016 11:13:33 +0200 Message-ID: <575E793D.1020702@6wind.com> References: <575E6B60.3030403@6wind.com> <1465806137-32619-1-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: David Marchand , dev To: Christian Ehrhardt Return-path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id CB3C62BE0 for ; Mon, 13 Jun 2016 11:13:41 +0200 (CEST) In-Reply-To: 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" On 06/13/2016 11:10 AM, Christian Ehrhardt wrote: > Hmm, > Hi again Oliver. >=20 > I was too fast saying yes. > I don't know what is different now but I clearly tested it wrong the > first time. > Now I get: >=20 > CC rte_xen_lib.o > /mnt/nvme/dpdk-16-07-pre-linking/drivers/net/xenvirt/rte_xen_lib.c:In > function =E2=80=98grant_gntalloc_mbuf_pool=E2=80=99: > /mnt/nvme/dpdk-16-07-pre-linking/drivers/net/xenvirt/rte_xen_lib.c:441:= 6:error: > =E2=80=98mp=E2=80=99 undeclared (first use in this function) > if (mp->nb_mem_chunks !=3D 1) { > ^ > /mnt/nvme/dpdk-16-07-pre-linking/drivers/net/xenvirt/rte_xen_lib.c:441:= 6:note: > each undeclared identifier is reported only once for each function it > appears in > /mnt/nvme/dpdk-16-07-pre-linking/drivers/net/xenvirt/rte_xen_lib.c:422:= 46:error: > unused parameter =E2=80=98mpool=E2=80=99 [-Werror=3Dunused-parameter] > grant_gntalloc_mbuf_pool(struct rte_mempool *mpool, uint32_t pg_num, > uint32_t *gref_arr, phys_addr_t *pa_arr, int mempool_idx) > ^ > cc1: all warnings being treated as errors >=20 >=20 > Not too hard, changing the mp to mpool on the two places the patch has > inserted it gets it working. >=20 Thanks, and sorry I did not test the compilation because I don't have the xen libraries installed. This shows that even reading the patch several times is less efficient than a compiler ;) I'll send a v2 soon.