From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] kni: fix compile issue on different kernel versions Date: Thu, 19 Nov 2015 10:20:58 +0100 Message-ID: <4856133.orSenHM9vl@xps13> References: <1447050372-30419-1-git-send-email-helin.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Zhang, Helin" Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 343F38DA3 for ; Thu, 19 Nov 2015 10:22:12 +0100 (CET) Received: by wmvv187 with SMTP id v187so15387272wmv.1 for ; Thu, 19 Nov 2015 01:22:12 -0800 (PST) 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" > > It fixes the compile issue on kernel version 2.6.32 or old ones. > > > > Error logs: > > lib/librte_eal/linuxapp/kni/kni_misc.c:121: error: unknown field id > > specified in initializer > > lib/librte_eal/linuxapp/kni/kni_misc.c:121: error: excess elements in struct > > initializer > > lib/librte_eal/linuxapp/kni/kni_misc.c:121: error: (near initialization for > > kni_net_ops) > > lib/librte_eal/linuxapp/kni/kni_misc.c:122: error: unknown field size > > specified in initializer > > lib/librte_eal/linuxapp/kni/kni_misc.c:122: error: excess elements in struct > > initializer > > lib/librte_eal/linuxapp/kni/kni_misc.c:122: error: (near initialization for > > kni_net_ops) > > > > Fixes: 72a7a2b2469e ("kni: allow per-net instances") > > > > Signed-off-by: Helin Zhang > > Acked-by: Pablo de Lara Applied, thanks