From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1bCNyS-0007l5-Qy; Mon, 13 Jun 2016 11:16:01 +0200 To: Christian Ehrhardt References: <575E6B60.3030403@6wind.com> <1465806137-32619-1-git-send-email-olivier.matz@6wind.com> Cc: David Marchand , dev From: Olivier Matz Message-ID: <575E793D.1020702@6wind.com> Date: Mon, 13 Jun 2016 11:13:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH] xenvirt: fix compilation after mempool changes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2016 09:13:42 -0000 On 06/13/2016 11:10 AM, Christian Ehrhardt wrote: > Hmm, > Hi again Oliver. > > 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: > > CC rte_xen_lib.o > /mnt/nvme/dpdk-16-07-pre-linking/drivers/net/xenvirt/rte_xen_lib.c:In > function ‘grant_gntalloc_mbuf_pool’: > /mnt/nvme/dpdk-16-07-pre-linking/drivers/net/xenvirt/rte_xen_lib.c:441:6:error: > ‘mp’ undeclared (first use in this function) > if (mp->nb_mem_chunks != 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 ‘mpool’ [-Werror=unused-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 > > > Not too hard, changing the mp to mpool on the two places the patch has > inserted it gets it working. > 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.