From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by dpdk.org (Postfix) with ESMTP id F0A142BA2 for ; Tue, 25 Apr 2017 14:32:00 +0200 (CEST) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id v3PCVws9010663 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 25 Apr 2017 05:31:58 -0700 (PDT) Received: from ALA-MBC.corp.ad.wrs.com ([fe80::fcbe:9b7:1141:89a1]) by ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) with mapi id 14.03.0294.000; Tue, 25 Apr 2017 05:31:57 -0700 From: "Legacy, Allain" To: Adrien Mazarguil , "dev@dpdk.org" CC: "Peters, Matt" Thread-Topic: [PATCH v2 07/13] net/avp: fix errors in exported headers Thread-Index: AQHSvZ4zHT9dSJIgaE2jmfKEA+6H1qHV+Umw Date: Tue, 25 Apr 2017 12:31:56 +0000 Message-ID: <70A7408C6E1BFB41B192A929744D85239690F2B7@ALA-MBC.corp.ad.wrs.com> References: <046efd0fda00bfb5253586319fb9cfbf904a8f0a.1493108423.git.adrien.mazarguil@6wind.com> In-Reply-To: <046efd0fda00bfb5253586319fb9cfbf904a8f0a.1493108423.git.adrien.mazarguil@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.224.140.166] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 07/13] net/avp: fix errors in exported headers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2017 12:32:01 -0000 > -----Original Message----- > From: Adrien Mazarguil [mailto:adrien.mazarguil@6wind.com] > Sent: Tuesday, April 25, 2017 4:30 AM <...> >=20 > +#include > #ifdef __KERNEL__ > #include > +#else > +#include > +#include > +#include > +#include > +#endif I compiled this in our environment and found a couple of additional issues.= I apologize... I should have done that on the first pass. It should act= ually look like this to handle both userspace and kernel compiles: #ifdef __KERNEL__ #include #define RTE_STD_C11 #else #include #include #include #include #include #endif 1) stdint.h needs to be moved in to the #else, and=20 2) RTE_STD_C11 needs to be included in the #ifdef __KERNEL__. <..> > diff --git a/drivers/net/avp/rte_avp_fifo.h b/drivers/net/avp/rte_avp_fif= o.h > index 8262e4f..a0a37eb 100644 > --- a/drivers/net/avp/rte_avp_fifo.h > +++ b/drivers/net/avp/rte_avp_fifo.h > @@ -57,6 +57,12 @@ > #ifndef _RTE_AVP_FIFO_H_ > #define _RTE_AVP_FIFO_H_ >=20 > +#include Would you mind changing the brackets (<>) to quotes ("") since this is a lo= cal include file? =20 #include "rte_avp_common.h"